[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
http_parse_xml_string usage
I have been trying unsuccessfully to use http_parse_xml_string() to
parse a simple string of xml as follows:
XMLData = '<OrderID>123</OrderID>';
rc = http_parse_xml_string(%addr(XMLData) : %len(XMLData)
: HTTP_XML_CALC : %paddr(BegTag) : %paddr(EndTag) : *null);
I receive XML parse failed at line 1, col 0: not well-formed (invalid
token).
The value in XMLData appears to be valid xml and when I place
<OrderID>123</OrderID> in a file in the IFS called test.xml and run
rc = http_parse_xml_stmf( '/home/rmc/test.xml' :
HTTP_XML_CALC : *null : %paddr(EndTag) : *null );
it parses fine.
Are there any known issues with http_parse_xml_string?
Am I using it incorrectly?
Finally I am not clear on the purpose of the last parameter to the
function
"peUsrDta = (input) user-defined data that will be passed
to the call-back routine"
Any suggestions or insights are greatly appreciated.
Thanks,
--rmc
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------