其实QDBXML使用了大量优U的开源工h实现Q其中数据存储用Berkely DBQXML解析使用XercesCQXPath的实C用Pathan(2.3以前)QXQilla(2.3以后)。关于这几个库,我将官方|站的介l摘录如下:
- 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.
- Pathan is a open source library which allows developers using Xerces-C to parse and evaluate XPath expressions for XML node selection.
- 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.
- Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types
在接下来的工作中Q我们希望把存储的XML表达出来。我们通过XSL来实现XML的表达,有趣的是XSL
本n也是XMLQ又是一个有的递归?
把DBXML与XSL联系h。我们找C一个DBXML API中函敎ͼ他可以将XML Node 以Xerces DOMDocument 方式q回Q?
xercesc_2_6::DOMDocument *XmlDocument::getContentAsDOM() const;
我们要还要引入一个库Xalan C++。Xalan C++可以生成的l果存储在一个Xerces DOMDocument中;可以使用TransformToXercesDOMXercesDOM作ؓ转换的源?br>
在XML开源Y件中q有一支,那就是来自MIT的xmlsoft.org。其中最著名的libxml2和基于libxml2的libxsltQ均应用到gnome上。这些都是C的API包,在此基础上有C++l定,PHPl定Qperll定{等。debian下的php-mod-xml源自这里?
openoffice的OpenDocumentZXML,xml.openoffice.org上也有一些实玎ͼ同样值得x?

]]>