posted 21 years ago
OK, I found a way of doing this is you're using Xerces as your favourite SAX parser.
Please note that the following code is based on the actual implementation of Xerces and will not work if you're using a different parser.
The contents of the xmlDeclTest.xml file is as follows:
As expected, when running the XMLDeclSAXParser class, the output gives:
Hope this helps