| Author |
Getting comment data in SAX ?
|
Celina Paul
Greenhorn
Joined: Nov 01, 2003
Posts: 16
|
|
I had posted this question earlier in XML group, never got an answer. In DOM, there is a COMMENT_NODE to get the comment data, but if I have to get the data in a comment node in SAX, what can I do? When the parser comes across a comment node, there is no callback method defined for this in SAX. Is there a way to get that data in SAX ?
|
 |
Alexandru Popescu
Ranch Hand
Joined: Jul 12, 2004
Posts: 995
|
|
AFAIK in SAX 1.0 there is no way to retrieve the XML comments, as SAX assumes that comments are there for the author's benefit, not for the reader's. I don't know if this is fixed in SAX 2.0.
|
blog - InfoQ.com
|
 |
 |
|
|
subject: Getting comment data in SAX ?
|
|
|