Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!