0

can anyone tell how an XML (Java) parser will parse the XML document( i mean to say the internal implementation details of XML parsing)?

1 Answer 1

1

The exact algorithm probably varies quite a bit between different implementations.

Xerces is a widely used XML parser for Java. It is open source so you can download the Java source code to see how it is implemented.

Antlr is a parser generator for Java that makes writing a parser for languages like XML somewhat easier than doing it by hand. The Antlr documentation has some information about how you would write an XML parser using Antlr: Parsing XML. This covers most of the concepts of how such parsers work if you're more interested in a high level view.

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.