R
RamaKrishna Narla
Hi,
We are using Xalan1.4/Xerces2.1 SAX parser in C++. We have extended
DocumentHandler class, and registered its object using
setDocumentHandler method.
SAX Parser is reporting the document related events like startDocument,
startElement, endElement ...etc well.
But, it is starting the events from the root node of the xml document,
by calling startDocument method. We need to find out the encoding type
specified in the <?xml version="..." encoding="..." ?> processing
instruction.
SAX parser is not invoking processingInstruction method for the above
PI.
Is there any way to find out the encoding type specified in the very
first xml PI?
Thanks in advance,
Ramakrishna.
We are using Xalan1.4/Xerces2.1 SAX parser in C++. We have extended
DocumentHandler class, and registered its object using
setDocumentHandler method.
SAX Parser is reporting the document related events like startDocument,
startElement, endElement ...etc well.
But, it is starting the events from the root node of the xml document,
by calling startDocument method. We need to find out the encoding type
specified in the <?xml version="..." encoding="..." ?> processing
instruction.
SAX parser is not invoking processingInstruction method for the above
PI.
Is there any way to find out the encoding type specified in the very
first xml PI?
Thanks in advance,
Ramakrishna.