It is necessary to use C ++ to implement an XML parser.

Source: Internet
Author: User
Tags xml parser xslt

A complete XML parser is generally composed of several parts:

Necessary components:

1. DOM interface definition and Dom model implementation.
2. An XML lexical analyzer used to convert an XML token stream into a token stream.
3. An XML Parser organizes the token stream into a DOM model.
4. A set of data structures andAlgorithm, Nodeiterator, treewalker.
5. a dtd lexical analyzer and DTD Parser.
6. An XPath expression language compiler that compiles an XPATH expression into an ast tree.
7. An XPath engine performs operations on the DOM tree based on XPath ast.
8. An XSLT engine is used to complete the XSLT transform.
9. If you need to support XHTML, CSS parser is also required.

Auxiliary components:

1. memory management mechanism.
2. File reader supporting various encoding and network environments.
3. com encapsulation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.