November 2002
Intermediate to advanced
1120 pages
21h 2m
English
Each processing instruction that the parser reads is passed to the processingInstruction() method in one invocation. This includes processing instructions that occur before and after the root element. The target is given as the first argument and the data as the second argument.
public void processingInstruction (String target, String data) throws SAXException
Caution
Technically the XML declaration is not a processing instruction, even though it looks like one; and it is not passed to the processingInstruction() method. SAX 2.1 will add some features and properties for retrieving the values of the version, standalone, and encoding attributes from the XML declaration. However, until then SAX parsers do not ...
Read now
Unlock full access