[xml] Error parsing xml containing <SOH>



Title: Error parsing xml containing <SOH>

Hi

I have a simple xml file containing ASCII <SOH> :

<?xml version="1.0" encoding="ISO-8859-1"?>
<messages>
<message msg= "8=FIX4.2&#x01;9=248&#x01;" / >
</messages>

I use xmlReader

xmlTextReaderPtr reader = xmlReaderForFile("C:/file.xml",NULL,0);
int ret = xmlTextReaderRead(reader);

And I get

C:/file.xml:3: parser error : xmlParseCharRef: invalid xmlChar
value 1
<message msg = "8=FIX.4.2&#x01;9=248&#x01;35=F&#x01;

I am new to libxml2. I must be misusing the API. I probably should not use a Text Reader in that case…

I would appreciate any help.

Thank you in advance.


If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail.     http://www.ml.com/email_terms/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]