XML解析生成库

来源:互联网 发布:知否 知否 编辑:程序博客网 时间:2024/06/18 04:06

1、xml4c        

 ------http://www.alphaworks.ibm.com/tech/xml4c
  IBM的XML   Parser,用c++语言写就,功能超级强大。号称支持多达100种字符编码,能够支持中文,
适合于大规模的xml应用。若只是很小范围的应用,则非最佳选择,毕竟,你需要“背负”约12M左右的
dll的沉重负担

  
2、XMLBooster   

-------http://www.xmlbooster.com/
        这个库通过产生特制的parser的办法极大的提高了XML解析的速度,并且能够产生相应的GUI程序
来修改这个parser。在DOM和SAX两大主流XML解析办法之外提供了另外一个可行的解决方案。

3、libxml++     

 ----------- http://libxmlplusplus.sourceforge.net/     
  libxml++是对著名的libxml   XML解析器的C++封装版本

 

4、TinyXML    

  -----http://sourceforge.net/

TinyXML是一个开源的解析XML的解析库,能够用于C++,能够在WindowsLinux中编译。这个解析库的模型通过解析XML文件,然后在内存中生成DOM模型,从而让我们很方便的遍历这棵XML树。

可能因为微软、IBM这样的商业公式和开源社区在数据表达方面的不谋而合,以及再加上W3C推波助澜XML的相关技术总是和应用结合得非常紧密。XML从 产生就不乏优秀的工具。在最近一个项目中,我们就使用了原生的XML存储数据库Berkely DBXML(BDB)。
其实,DBXML使用了大量优秀的开源工具来实现,其中数据存储使用Berkely DB,XML解析使用XercesC,XPath的实现使用Pathan(2.3以前),XQilla(2.3以后)。关于这几个库,我将官方网站的介绍摘录如下:

  1. Xerces-C++ is a validating XML parser written in a portable subset of C++. Xerces-C++ makes it easy to give your application the ability to read and write XML data. A shared library is provided for parsing, generating, manipulating, and validating XML documents.
  2. Pathan is a open source library which allows developers using Xerces-C to parse and evaluate XPath expressions for XML node selection.
  3. XQilla is an XQuery and XPath 2 library and command line utility written in C++ , implemented on top of the Xerces-C. XQilla is originally based on an open source project called Pathan, that was hosted by Decisionsoft and implemented XPath 2. However, XQilla has been developed and improved considerably from the Pathan code base.
  4. Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types

    在接下来的工作中,我们希望把存储的XML表达出来。我们通过XSL来实现XML的表达,有趣的是XSL
本身也是XML,又是一个有趣的递归。
把DBXML与XSL联系起来。我们找到了一个DBXML API中函数,他可以将XML Node 以Xerces DOMDocument 方式返回:

5、Mini-XML 2.6

 


官方下载:http://www.minixml.org/software.php

下载地址:http://sourceforge.net/projects/mxml/files/

中文手册:http://www.minixml.org/strfiles/

====使用方法:========

基本技巧 http://www.minixml.org/documentation.php/basics.html  


进阶技巧  http://www.minixml.org/documentation.php/advanced.html

 

Mini-XML provides a single header file which you include:
#include <mxml.h>
The Mini-XML library is included with your program using the -lmxml option:
gcc -o myprogram myprogram.c -lmxml
If you have the pkg-config(1) software installed, you can use it to determine the proper compiler and linker options for your installation:
pkg-config --cflags mxml pkg-config --libs mxml


-------------以下是其他几个XML 开源解析库---------------------------------
6、.   expat xml parse

下载地址: http://sourceforge.net/projects/expat/

 


7.  Apache Xerces for C++ XML Parser

 

C++写的xml解析器 ,事实上apache还有很多java xml解析器 貌似都是提供源代码的

下载地址:http://xml.apache.org/xerces-c/download.cgi

Xerces-C++ is a validating XML parser written in a portable subset of C++. Xerces-C++ makes it easy to give your application the ability to read and write XML data. A shared library is provided for parsing, generating, manipulating, and validating XML documents. Xerces-C++ is faithful to the XML 1.0 and 1.1 recommendations and many associated standards. The parser provides high performance, modularity, and scalability. Source code, samples and API documentation are provided with the parser. For portability, care has been taken to make minimal use of templates, no RTTI, and minimal use of #ifdefs.

Programming Languages C
Categories xml
Mailing Lists http://xerces.apache.org/mail.html
Bug/Issue Tracker https://issues.apache.org/jira/browse/XERCESC
License Apache License Version 2.0
Project Website http://xerces.apache.org/xerces-c/
PMC Apache Xerce

Xerces c++    -------http://xml.apache.org/xerces-c
  Apache的XML项目,同样是c++   实现,来源于IBM的xml4c,因此编程接口也是和xml4c一致的。但是
目前只支持少数的字符编码,如ASCII,UTF-8,UTF-16等,不能处理包含中文字符的XML文档。
    Xerces-C++   是一个非常健壮的XML解析器,它提供了验证,以及SAX和DOM   API。XML验证在文档类型定
义(Document   Type   Definition,DTD)方面有很好的支持,并且在2001年12月增加了支持W3C   XML   Schema 
的基本完整的开放标准。

Releases can be downloaded from http://xml.apache.org/xerces-c/download.cgi

 

8.    The XML C parser and toolkit of Gnome
     Libxml2 是一个xml c语言版的解析器,本来是为Gnome项目开发的工具,是一个基于MIT License的免费开源软件。它除了支持c语言版以外,还支持c++、PHP、Pascal、Ruby、Tcl等语言的绑定,能在Windows、Linux、Solaris、MacOsX等平台上运行。功能还是相当强大的,相信满足一般用户需求没有任何问题。


官方介绍页面:http://xmlsoft.org/downloads.html

下载地址:ftp://xmlsoft.org/libxml2/libxml2-git-snapshot.tar.gz

使用手册:ftp://xmlsoft.org/libxml2/libxml-docs.tar.gz

 


9、XML (Extensible Markup Language) access functions
Filename: sflxml.h
 Package: Standard Function Library (SFL)
 Written: 1998/02/25 iMatix SFL project team sfl@imatix.com
 Revised: 2000/01/16
 Copyright: Copyright (c) 1991-99 iMatix Corporation

官方地址:http://legacy.imatix.com/html/sfl/sfl468.htm#TOC481   

 

10、Boost库自带的rapidXML

 

11、 MS XML Lib

       IE自带的XML解析库

原创粉丝点击