Hi,
I'm trying to parse an input buffer using a SAX2XMLReader parser with validation set. The program that sends the XML buffer to be parsed, reads the data from a text file. My XSD specifies UTF-8 encoding. The program reads the data from the file and sends it to the Parser in a char buffer. It does this in a loop, twice. I get a UTFDataFormatException the first time. But the second time, there are no exceptions and the parsing completes. Saving the file in UTF-8 encoding and removing the cr lf characters solved this. But can someone please tell me why the same data causes an exception the first time but not in the second time? I'm using Xerces-C++ 2.8 Thanks! Swati
