[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Xml parsing error, XML parse failed at line 1, col 0: no element found
I'm getting this when trying to parse a simple xml document:
<?xml version="1.0"
encoding="UTF-8"?><ChAcctResponse><AccountNumber>0232100016</AccountNu
mber><CardNumber>00000000100012</CardNumber><ReasonCode>0</ReasonCode>
</ChAcctResponse>
I'm feeding it in from the command line like this:
===> call xmlparse '<?xml version="1.0"
encoding="UTF-8"?><ChAcctResponse><Acco
untNumber>0232100016</AccountNumber><CardNumber>00000000100012</CardNu
mber><Reas
onCode>0</ReasonCode></ChAcctResponse>'
I distilled it down to that because I'm hoping to use HTTPAPI in a
production web service client and I'm getting the same error there.
I'm using http_url_get_raw, and parsing the xml reply with
http_parse_xml_string. Here's my invocation of that:
c eval rc =
http_parse_xml_string(%addr(retdata)
c :%len(%trim(retdata))
c :HTTP_XML_CALC
c :%paddr(FVchangeXML)
c :*null
c :*null)
From just eyeballing the xml in debug, I can't find any problems with
it. What am I missing?
Bruce McDougald
Compass Technologies
75 Maddox Rd., Ste 104
Buford, GA 30518
Office: 770-904-0488
Fax: 770-904-0411
bruce.mcdougald@xxxxxxxxxxxxxxxxxxxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------