The moose likes XML and Related Technologies and the fly likes Getting comment data using SAX.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Getting comment data using SAX...." Watch "Getting comment data using SAX...." New topic

Getting comment data using SAX....

Siyaa Hoffman

Joined: Jan 15, 2004
Posts: 23

I wanted to know that is it possible to use SAX parser and get the data in a comment node...when I say node I actually mean the data in the element -

<!--this data using SAX -->

I know in DOM, there is a comment node and you can get that data.
How would I get that data using SAX ?

It is sorta covered in the JavaRanch Style Guide.
subject: Getting comment data using SAX....
Similar Threads
SAXParser Usage.
Is DOM is still a slow compare to SAX?
SAX Or DOM Which is efficient. my thoughts
Getting comment data in SAX ?
Using DOM - Can I get the line number for a node