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