blob: 69e54ad7bbefe3866114cc413160103e728bf203 [file] [log] [blame]
Daniel Veillard1177ca42003-04-26 22:29:54 +00001<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
6 <link rel="SHORTCUT ICON" href="/favicon.ico" />
7 <style type="text/css">
Daniel Veillard373a4752002-02-21 14:46:29 +00008TD {font-family: Verdana,Arial,Helvetica}
9BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
10H1 {font-family: Verdana,Arial,Helvetica}
11H2 {font-family: Verdana,Arial,Helvetica}
12H3 {font-family: Verdana,Arial,Helvetica}
Daniel Veillardb8cfbd12001-10-25 10:53:28 +000013A:link, A:visited, A:active { text-decoration: underline }
Daniel Veillard1177ca42003-04-26 22:29:54 +000014</style>
Daniel Veillarde2811272004-10-19 09:04:23 +000015 <title>The XML C parser and toolkit of Gnome</title>
Daniel Veillard1177ca42003-04-26 22:29:54 +000016 </head>
Daniel Veillard7a2c2ee2004-08-14 13:56:39 +000017 <body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000">
Daniel Veillard1177ca42003-04-26 22:29:54 +000018 <table border="0" width="100%" cellpadding="5" cellspacing="0" align="center">
19 <tr>
Daniel Veillard6c57dca2003-09-03 10:10:51 +000020 <td width="120">
21 <a href="http://swpat.ffii.org/">
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000022 <img src="epatents.png" alt="Action against software patents" />
Daniel Veillard6c57dca2003-09-03 10:10:51 +000023 </a>
24 </td>
Daniel Veillard1177ca42003-04-26 22:29:54 +000025 <td width="180">
26 <a href="http://www.gnome.org/">
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000027 <img src="gnome2.png" alt="Gnome2 Logo" />
Daniel Veillard1177ca42003-04-26 22:29:54 +000028 </a>
29 <a href="http://www.w3.org/Status">
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000030 <img src="w3c.png" alt="W3C Logo" />
Daniel Veillard1177ca42003-04-26 22:29:54 +000031 </a>
32 <a href="http://www.redhat.com/">
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000033 <img src="redhat.gif" alt="Red Hat Logo" />
Daniel Veillard1177ca42003-04-26 22:29:54 +000034 </a>
35 <div align="left">
36 <a href="http://xmlsoft.org/">
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000037 <img src="Libxml2-Logo-180x168.gif" alt="Made with Libxml2 Logo" />
Daniel Veillard1177ca42003-04-26 22:29:54 +000038 </a>
39 </div>
40 </td>
41 <td>
42 <table border="0" width="90%" cellpadding="2" cellspacing="0" align="center" bgcolor="#000000">
43 <tr>
44 <td>
45 <table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#fffacd">
46 <tr>
47 <td align="center">
Daniel Veillarde2811272004-10-19 09:04:23 +000048 <h1>The XML C parser and toolkit of Gnome</h1>
49 <h2>libxml</h2>
Daniel Veillard1177ca42003-04-26 22:29:54 +000050 </td>
51 </tr>
52 </table>
53 </td>
54 </tr>
55 </table>
56 </td>
57 </tr>
58 </table>
59 <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center">
60 <tr>
61 <td bgcolor="#8b7765">
62 <table border="0" cellspacing="0" cellpadding="2" width="100%">
63 <tr>
64 <td valign="top" width="200" bgcolor="#8b7765">
65 <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000">
66 <tr>
67 <td>
68 <table width="100%" border="0" cellspacing="1" cellpadding="3">
69 <tr>
70 <td colspan="1" bgcolor="#eecfa1" align="center">
71 <center>
Daniel Veillarde2811272004-10-19 09:04:23 +000072 <b>Main Menu</b>
Daniel Veillard1177ca42003-04-26 22:29:54 +000073 </center>
74 </td>
75 </tr>
76 <tr>
77 <td bgcolor="#fffacd">
78 <form action="search.php" enctype="application/x-www-form-urlencoded" method="get">
79 <input name="query" type="text" size="20" value="" />
80 <input name="submit" type="submit" value="Search ..." />
81 </form>
82 <ul>
83 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +000084 <a href="index.html">Home</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +000085 </li>
86 <li>
Daniel Veillard5c4cb2d2005-02-20 13:30:02 +000087 <a href="http://xmlsoft.org/wiki">Wiki</a>
88 </li>
89 <li>
Daniel Veillardf47d2e32005-01-12 14:16:08 +000090 <a href="html/index.html">Reference Manual</a>
91 </li>
92 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +000093 <a href="intro.html">Introduction</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +000094 </li>
95 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +000096 <a href="FAQ.html">FAQ</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +000097 </li>
98 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +000099 <a href="docs.html" style="font-weight:bold">Developer Menu</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000100 </li>
101 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000102 <a href="bugs.html">Reporting bugs and getting help</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000103 </li>
104 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000105 <a href="help.html">How to help</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000106 </li>
107 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000108 <a href="downloads.html">Downloads</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000109 </li>
110 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000111 <a href="news.html">Releases</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000112 </li>
113 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000114 <a href="XMLinfo.html">XML</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000115 </li>
116 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000117 <a href="XSLT.html">XSLT</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000118 </li>
119 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000120 <a href="xmldtd.html">Validation &amp; DTDs</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000121 </li>
122 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000123 <a href="encoding.html">Encodings support</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000124 </li>
125 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000126 <a href="catalog.html">Catalog support</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000127 </li>
128 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000129 <a href="namespaces.html">Namespaces</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000130 </li>
131 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000132 <a href="contribs.html">Contributions</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000133 </li>
134 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000135 <a href="examples/index.html" style="font-weight:bold">Code Examples</a>
Daniel Veillarda59853a2003-11-12 22:50:47 +0000136 </li>
137 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000138 <a href="html/index.html" style="font-weight:bold">API Menu</a>
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000139 </li>
140 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000141 <a href="guidelines.html">XML Guidelines</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000142 </li>
Daniel Veillard8badcee2004-05-16 00:28:36 +0000143 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000144 <a href="ChangeLog.html">Recent Changes</a>
Daniel Veillard8badcee2004-05-16 00:28:36 +0000145 </li>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000146 </ul>
147 </td>
148 </tr>
149 </table>
150 <table width="100%" border="0" cellspacing="1" cellpadding="3">
151 <tr>
152 <td colspan="1" bgcolor="#eecfa1" align="center">
153 <center>
Daniel Veillarde2811272004-10-19 09:04:23 +0000154 <b>Related links</b>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000155 </center>
156 </td>
157 </tr>
158 <tr>
159 <td bgcolor="#fffacd">
160 <ul>
161 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000162 <a href="http://mail.gnome.org/archives/xml/">Mail archive</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000163 </li>
164 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000165 <a href="http://xmlsoft.org/XSLT/">XSLT libxslt</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000166 </li>
167 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000168 <a href="http://phd.cs.unibo.it/gdome2/">DOM gdome2</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000169 </li>
170 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000171 <a href="http://www.aleksey.com/xmlsec/">XML-DSig xmlsec</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000172 </li>
173 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000174 <a href="ftp://xmlsoft.org/">FTP</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000175 </li>
176 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000177 <a href="http://www.zlatkovic.com/projects/libxml/">Windows binaries</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000178 </li>
179 <li>
MST 2004 John Fleckb759b302004-12-21 15:14:08 +0000180 <a href="http://www.blastwave.org/packages.php/libxml2">Solaris binaries</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000181 </li>
182 <li>
Daniel Veillardd49370e2005-04-11 23:28:16 +0000183 <a href="http://www.explain.com.au/oss/libxml2xslt.html">MacOsX binaries</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000184 </li>
185 <li>
Daniel Veillard142fb212005-04-07 12:48:10 +0000186 <a href="http://libxmlplusplus.sourceforge.net/">C++ bindings</a>
187 </li>
188 <li>
189 <a href="http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4">PHP bindings</a>
190 </li>
191 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000192 <a href="http://sourceforge.net/projects/libxml2-pas/">Pascal bindings</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000193 </li>
194 <li>
Daniel Veillard142fb212005-04-07 12:48:10 +0000195 <a href="http://rubyforge.org/projects/xml-tools/">Ruby bindings</a>
196 </li>
197 <li>
198 <a href="http://tclxml.sourceforge.net/">Tcl bindings</a>
199 </li>
200 <li>
Daniel Veillarde2811272004-10-19 09:04:23 +0000201 <a href="http://bugzilla.gnome.org/buglist.cgi?product=libxml2">Bug Tracker</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000202 </li>
203 </ul>
204 </td>
205 </tr>
206 </table>
207 </td>
208 </tr>
209 </table>
210 </td>
211 <td valign="top" bgcolor="#8b7765">
212 <table border="0" cellspacing="0" cellpadding="1" width="100%">
213 <tr>
214 <td>
215 <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000">
216 <tr>
217 <td>
218 <table border="0" cellpadding="3" cellspacing="1" width="100%">
219 <tr>
220 <td bgcolor="#fffacd">
221 <p></p>
Daniel Veillard7ebac022004-02-25 22:36:35 +0000222 <p style="text-align: right; font-style: italic; font-size: 10pt">"Programming
Daniel Veillarde2811272004-10-19 09:04:23 +0000223with libxml2 is like the thrilling embrace of an exotic stranger." <a href="http://diveintomark.org/archives/2004/02/18/libxml2">Mark
224Pilgrim</a></p>
Daniel Veillard598bec32003-07-06 10:02:03 +0000225 <p>Libxml2 is the XML C parser and toolkit developed for the Gnome project
Daniel Veillard23a52c52003-08-18 10:01:18 +0000226(but usable outside of the Gnome platform), it is free software available
Daniel Veillarde2811272004-10-19 09:04:23 +0000227under the <a href="http://www.opensource.org/licenses/mit-license.html">MIT
228License</a>. XML itself is a metalanguage to design markup languages, i.e.
Daniel Veillardeec1ae92003-09-09 13:11:01 +0000229text language where semantic and structure are added to the content using
Daniel Veillard024f1992003-12-10 16:43:49 +0000230extra "markup" information enclosed between angle brackets. HTML is the most
Daniel Veillarde2811272004-10-19 09:04:23 +0000231well-known markup language. Though the library is written in C <a href="python.html">a variety of language bindings</a> make it available in
232other environments.</p>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000233 <p>Libxml2 is known to be very portable, the library should build and work
Daniel Veillard710823b2003-03-04 10:05:52 +0000234without serious troubles on a variety of systems (Linux, Unix, Windows,
Daniel Veillarde2811272004-10-19 09:04:23 +0000235CygWin, MacOS, MacOS X, RISC Os, OS/2, VMS, QNX, MVS, ...)</p>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000236 <p>Libxml2 implements a number of existing standards related to markup
Daniel Veillarde2811272004-10-19 09:04:23 +0000237languages:</p>
238 <ul><li>the XML standard: <a href="http://www.w3.org/TR/REC-xml">http://www.w3.org/TR/REC-xml</a></li>
239 <li>Namespaces in XML: <a href="http://www.w3.org/TR/REC-xml-names/">http://www.w3.org/TR/REC-xml-names/</a></li>
240 <li>XML Base: <a href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a></li>
241 <li><a href="http://www.cis.ohio-state.edu/rfc/rfc2396.txt">RFC 2396</a> :
242 Uniform Resource Identifiers <a href="http://www.ietf.org/rfc/rfc2396.txt">http://www.ietf.org/rfc/rfc2396.txt</a></li>
243 <li>XML Path Language (XPath) 1.0: <a href="http://www.w3.org/TR/xpath">http://www.w3.org/TR/xpath</a></li>
244 <li>HTML4 parser: <a href="http://www.w3.org/TR/html401/">http://www.w3.org/TR/html401/</a></li>
245 <li>XML Pointer Language (XPointer) Version 1.0: <a href="http://www.w3.org/TR/xptr">http://www.w3.org/TR/xptr</a></li>
246 <li>XML Inclusions (XInclude) Version 1.0: <a href="http://www.w3.org/TR/xinclude/">http://www.w3.org/TR/xinclude/</a></li>
247 <li>ISO-8859-x encodings, as well as <a href="http://www.cis.ohio-state.edu/rfc/rfc2044.txt">rfc2044</a> [UTF-8]
248 and <a href="http://www.cis.ohio-state.edu/rfc/rfc2781.txt">rfc2781</a>
249 [UTF-16] Unicode encodings, and more if using iconv support</li>
250 <li>part of SGML Open Technical Resolution TR9401:1997</li>
251 <li>XML Catalogs Working Draft 06 August 2001: <a href="http://www.oasis-open.org/committees/entity/spec-2001-08-06.html">http://www.oasis-open.org/committees/entity/spec-2001-08-06.html</a></li>
252 <li>Canonical XML Version 1.0: <a href="http://www.w3.org/TR/xml-c14n">http://www.w3.org/TR/xml-c14n</a>
253 and the Exclusive XML Canonicalization CR draft <a href="http://www.w3.org/TR/xml-exc-c14n">http://www.w3.org/TR/xml-exc-c14n</a></li>
254 <li>Relax NG, ISO/IEC 19757-2:2003, <a href="http://www.oasis-open.org/committees/relax-ng/spec-20011203.html">http://www.oasis-open.org/committees/relax-ng/spec-20011203.html</a></li>
255 <li>W3C XML Schemas Part 2: Datatypes <a href="http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/">REC 02 May
256 2001</a></li>
257 <li>W3C <a href="http://www.w3.org/TR/xml-id/">xml:id</a> Working Draft 7
258 April 2004</li>
Daniel Veillardc9484202001-10-24 12:35:52 +0000259</ul>
Daniel Veillard95c09d92003-07-07 12:11:06 +0000260 <p>In most cases libxml2 tries to implement the specifications in a
Daniel Veillard7c4eb632004-04-19 21:29:12 +0000261relatively strictly compliant way. As of release 2.4.16, libxml2 passed all
Daniel Veillarde2811272004-10-19 09:04:23 +00002621800+ tests from the <a href="http://www.oasis-open.org/committees/xml-conformance/">OASIS XML Tests
263Suite</a>.</p>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000264 <p>To some extent libxml2 provides support for the following additional
Daniel Veillarde2811272004-10-19 09:04:23 +0000265specifications but doesn't claim to implement them completely:</p>
266 <ul><li>Document Object Model (DOM) <a href="http://www.w3.org/TR/DOM-Level-2-Core/">http://www.w3.org/TR/DOM-Level-2-Core/</a>
Daniel Veillardd4cfcef2004-05-06 18:55:27 +0000267 the document model, but it doesn't implement the API itself, gdome2 does
Daniel Veillarde2811272004-10-19 09:04:23 +0000268 this on top of libxml2</li>
269 <li><a href="http://www.cis.ohio-state.edu/rfc/rfc959.txt">RFC 959</a> :
270 libxml2 implements a basic FTP client code</li>
271 <li><a href="http://www.cis.ohio-state.edu/rfc/rfc1945.txt">RFC 1945</a> :
272 HTTP/1.0, again a basic HTTP client code</li>
273 <li>SAX: a SAX2 like interface and a minimal SAX1 implementation compatible
274 with early expat versions</li>
Daniel Veillard9c466822001-10-25 12:03:39 +0000275</ul>
Daniel Veillarde2811272004-10-19 09:04:23 +0000276 <p>A partial implementation of <a href="http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/">XML Schemas Part
2771: Structure</a> is being worked on but it would be far too early to make any
278conformance statement about it at the moment.</p>
279 <p>Separate documents:</p>
280 <ul><li><a href="http://xmlsoft.org/XSLT/">the libxslt page</a> providing an
Daniel Veillard2d347fa2002-03-17 10:34:11 +0000281 implementation of XSLT 1.0 and common extensions like EXSLT for
Daniel Veillarde2811272004-10-19 09:04:23 +0000282 libxml2</li>
283 <li><a href="http://www.cs.unibo.it/~casarini/gdome2/">the gdome2 page</a>
284 : a standard DOM2 implementation for libxml2</li>
285 <li><a href="http://www.aleksey.com/xmlsec/">the XMLSec page</a>: an
286 implementation of <a href="http://www.w3.org/TR/xmldsig-core/">W3C XML
287 Digital Signature</a> for libxml2</li>
288 <li>also check the related links section below for more related and active
289 projects.</li>
Daniel Veillardc9484202001-10-24 12:35:52 +0000290</ul>
Daniel Veillarde2811272004-10-19 09:04:23 +0000291 <p>Logo designed by <a href="mailto:liyanage@access.ch">Marc Liyanage</a>.</p>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000292 <p>
Daniel Veillarde2811272004-10-19 09:04:23 +0000293 <a href="bugs.html">Daniel Veillard</a>
Daniel Veillard1177ca42003-04-26 22:29:54 +0000294 </p>
295 </td>
296 </tr>
297 </table>
298 </td>
299 </tr>
300 </table>
301 </td>
302 </tr>
303 </table>
304 </td>
305 </tr>
306 </table>
307 </td>
308 </tr>
309 </table>
310 </body>
Daniel Veillardc9484202001-10-24 12:35:52 +0000311</html>