xmlCtxReadIO and BOM

Frank Gross <[email protected]>
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <[email protected]>
Hi,

I came to an issue where I try to parse an XML document from an HTTP 
stream. I decode the charset from the HTTP header and then create a 
xmlCtxReadIO with that charset value as encoding parameter. The problem 
is that the XML document has three BOM characters, and it seems that 
xmlCtxReadIO considers the document as malformed in that case. (XML 
document with BOM value and when we call xmlCtxReadIO with an encoding 
value).  Notice that if I don't provide the encoding value to 
xmlCtxReadIO, the parsing works well as BOM is decoded. Is there a way 
to ignore the BOM when parsing with xmlCtxReadIO ?

Regards,

Frank


-- 
Frank GROSS
Software Engineer - Web Services
Four J's Development Tools - http://www.4js.com

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.