>oXML=newObject("Msxml2.DOMDocument") >oXML.async=.f. >cXML=[<?xml version="1.0"><row>This is my row without a question mark</row>] >?oXML.loadXML(cXML) >?oxml.parseError.errorCode >?oxml.parseError.reason >>
><?xml ... ?> is control/operative tag > ><?xml ... > is unknown tag - not valid >>
>>oXML=newObject("Msxml2.DOMDocument") >>oXML.async=.f. >>cXML=[<?xml version="1.0"><row>This is my row without a question mark</row>] >>oXML.loadXML(cXML) >>?oXML.childNodes.length && Returns a 0 >>?oXML.childNodes(0).text && Error: No childnodes >>* Now put a question mark in >>cXML=[<?xml version="1.0"?><row>This is my row with a question mark</row>] >>oXML.loadXML(cXML) >>?oXML.childNodes.length && Returns a 2 >>?oXML.childNodes(0).text && Returns 'version="1.0"' >>?oXML.childNodes(1).text && Returns 'This is my row with a question mark' >>* Make sure to clear >>oXML.abort >>release oXML>>Does it work? It loads - but it does not address the nodes as configured in this scenario.