2

I managed to parse to comments from an XML file using javax.xml.parsers.SAXParser, but is there a way to parse comments in org.apache.xerces.parsers.SAXParser in Java? A simple example would be brilliant. thanks

1
  • What do you mean by parse comments in Java? You wish to add comment nodes? Or obtain the comment nodes from a parsed document? Commented Mar 23, 2010 at 10:11

1 Answer 1

3

You need to implement a LexicalHandler.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.