If you can attach an example of a document (don't include it in the message body) that doesn't parse it might be helpful.
-----Original Message----- From: Jena, Prasant Kumar (Prasant Kumar) [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 24, 2006 3:03 AM To: [email protected] Subject: DOMBuilder parse() method throws UTFDataFormatException Hi, I am using Xeces 2.5 , I am using DOMBuilder to parse the XML file. Here is the code in my application MemBufInputSource* pInputXml = new MemBufInputSource ( (const XMLByte*)( buff ) , strlen( buff ) , xmlFile , false ); Wrapper4InputSource inputXmlWrapper ( pInputXml , true ); DOMInputSource* pDomInput = &inputXmlWrapper; doc = DomBuilderObj->parse (*pDomInput); But it always throws UTFDataFormatException Fatal Error at file tt.xml, line 1, char 56 Message: An exception occurred! Type:UTFDataFormatException, Message:invalid byte 2 (=) of a 2-byte sequence. XML header is like <?xml version="1.0" encoding="UTF-8" standalone="no" ?> Can you please figure out what may be the cause of this problem. Thanks, Prasant
