C, C ++ open source XML library

Source: Internet
Author: User
Tags xslt xslt processor
Guidance:
Top three open source codes
The three most popular open source XML libraries are expat, libxml, and xerces. These three are all cross-platform. Each of them serves as the basis for the implementation of the XSLT library. Once the basic XML needs are met, it will give you a way to grow.
* Expat is an open source event-Oriented XML parsing library created by James Clark. He has transferred the project to a group in SourceForge. There is a sax package for use. Expat parsers can be found in many projects, such as open source browsers Mozilla, XSLT processor transformiix, and RDF tool repat.
* Libxml provides a dual API for operations similar to Sax and Dom. It supports DTD verification and is used in the gnome XSLT processor libxslt. Libxml is rewritten and published as libxml (2). It may also be called libxml2. Users of this database should ensure that they have the current version.
* Xerces is a very robust library with a large number of documents. It serves as the basis for the IBM alphaWorks xml4c library. Xerces is also used in the Apache XSLT processor xalan. Xerces supports Dom, sax, and DTD verification. The latest version reads and explains some "W3C XML Schema recommendations" (we plan to implement full XML Schema support by the end of 2001 ).
Compiling and linking one of the three most popular libraries to your project is effortless. Most software packages contain detailed descriptions of each platform. Here are some sample installation instructions.
Build an Open Source library on Windows
Building libxml from scratch on Windows is a simple four steps:
1. Download the source tarball file.
2. Use a file such as WinZip Program Extract the content to a directory. Confirm the instructions to understand how the compression utility retains the path name of any subdirectory that libxml may need.
3. Locate the libxml2.dsw file in the./Win32/DSP subfolders and open it from MS developer studio.
4. Select build all from the top menu in devstudio. This will build all the samples and test programs and run the libxml DLL they need.
You can use the above steps to build xerces on Windows. The only difference is to find the samples. DSW workspace file in the./C/samples/projects/Win32/vc6 subfolders.
Expat has started to include the DSP project makefile. View the lib and xmlwf subfolders.
Recommendation complaint

This article is transferred from
Http://blog.chinaunix.net/u/6800/showart_146479.html

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.