I have read here and tried to use the supplied examples to see what they do but keep on getting error please advice:
Method GetXMLDocFromFile(file = "C:test2.xml") As %XML.Document
{
set reader=##class(%XML.Reader).%New()
set status=reader.OpenFile(file)
if $$$ISERR(status) {do $System.Status.DisplayError(status) quit $$$NULLOREF}
set document=reader.Document
set reNo=##class(%XML.Node).%New()//check here
set reNo.Document=document//check here
do .



