• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Receiving comments while using a SAX Parser

 
Prem Sagar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is there any method that receives the notification of comments,in ContentHandler interface.I mean comments, like processing instructions, are passed to the SAX application or not ?
Thanx
Prem Sagar
(SCJP2)
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The SAX core api has no support for comments.

However, SAX2, the extensible SAX API supports comments and a few other things not supported by SAX1. For instance, the LexicalHandler class provides lexical information about an XML document, such as comments and CDATA section boundaries.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic