Can I get at the processing instruction via dom or sax.

Roseanne Zhang

 

 

In SAX, use org.xml.sax.helpers.DefaultHandler.processingInstruction method.

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws SAXException
Receive notification of a processing instruction. 
By default, do nothing. Application writers may override this method in a subclass to take
specific actions for each processing instruction, such as setting status variables or invoking
other methods.
In DOM: org.w3c.dom.ProcessingInstruction is a Node on the DOM tree. 

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact