• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DOM document to Sax parser

 
Ambika Jain
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

The client api provides us with a method that returns DOM document. The method processes the XML and the XML need not adhere to any schema.

In order to display the content of this document, I want to use SAX parser. Is there a way, I pass this document to SAX parser ?

Or, is there any other way to do this.

Thanks in advance,
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you have written a ContentHandler that you would like to plug into a SAXParser? Then do this:If I am not mistaken this should call the methods in your ContentHandler.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic