mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-14 19:24:06 +03:00
10a2c6532a
- cleanups on memory use and parsers - start of Link interfaces HTML and XLink - rebuild the doc - released as 1.8.0 Daniel
877 lines
34 KiB
HTML
877 lines
34 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||
<html>
|
||
<head>
|
||
<title>The XML library for Gnome</title>
|
||
<meta name="GENERATOR" content="amaya V2.2">
|
||
</head>
|
||
|
||
<body bgcolor="#ffffff">
|
||
<h1 align="center">The XML library for Gnome</h1>
|
||
|
||
<h2 style="text-align: center">libxml, a.k.a. gnome-xml</h2>
|
||
|
||
<p></p>
|
||
<ul>
|
||
<li><a href="#Introducti">Introduction</a></li>
|
||
<li><a href="#Documentat">Documentation</a></li>
|
||
<li><a href="#Downloads">Downloads</a></li>
|
||
<li><a href="#News">News</a></li>
|
||
<li><a href="#XML">XML</a></li>
|
||
<li><a href="#tree">The tree output</a></li>
|
||
<li><a href="#interface">The SAX interface</a></li>
|
||
<li><a href="#library">The XML library interfaces</a>
|
||
<ul>
|
||
<li><a href="#Invoking">Invoking the parser</a></li>
|
||
<li><a href="#Building">Building a tree from scratch</a></li>
|
||
<li><a href="#Traversing">Traversing the tree</a></li>
|
||
<li><a href="#Modifying">Modifying the tree</a></li>
|
||
<li><a href="#Saving">Saving the tree</a></li>
|
||
<li><a href="#Compressio">Compression</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a href="#Entities">Entities or no entities</a></li>
|
||
<li><a href="#Namespaces">Namespaces</a></li>
|
||
<li><a href="#Validation">Validation</a></li>
|
||
<li><a href="#Principles">DOM principles</a></li>
|
||
<li><a href="#real">A real example</a></li>
|
||
</ul>
|
||
|
||
<h2><a name="Introducti">Introduction</a></h2>
|
||
|
||
<p>This document describes the <a href="http://www.w3.org/XML/">XML</a>
|
||
library provideed in the <a href="http://www.gnome.org/">Gnome</a> framework.
|
||
XML is a standard to build tag based structured documents/data.</p>
|
||
|
||
<p>The internal document repesentation is as close as possible to the <a
|
||
href="http://www.w3.org/DOM/">DOM</a> interfaces.</p>
|
||
|
||
<p>Libxml also has a <a href="http://www.megginson.com/SAX/index.html">SAX
|
||
interface</a>, <a href="mailto:james@daa.com.au">James Henstridge</a> made <a
|
||
href="http://www.daa.com.au/~james/gnome/xml-sax/xml-sax.html">a nice
|
||
documentation</a> expaining how to use it. The interface is as compatible as
|
||
possible with <a href="http://www.jclark.com/xml/expat.html">Expat</a>
|
||
one.</p>
|
||
|
||
<p>There is also a mailing-list <a
|
||
href="mailto:xml@rufus.w3.org">xml@rufus.w3.org</a> for libxml, with an <a
|
||
href="http://xmlsoft.org/messages">on-line archive</a>. To
|
||
subscribe to this majordomo based list, send a mail to <a
|
||
href="mailto:majordomo@rufus.w3.org">majordomo@rufus.w3.org</a> with
|
||
"subscribe xml" in the <strong>content</strong> of the message.</p>
|
||
|
||
<p>This library is released both under the W3C Copyright and the GNU LGP,
|
||
basically everybody should be happy, if not, drop me a mail.</p>
|
||
|
||
<p>People are invited to use the <a
|
||
href="http://cvs.gnome.org/lxr/source/gdome/">gdome Gnome module to</a> get a
|
||
full DOM interface, thanks to <a href="mailto:raph@levien.com">Raph
|
||
Levien</a>, check his <a
|
||
href="http://www.levien.com/gnome/domination.html">DOMination paper</a>. He
|
||
uses it for his implementation of <a
|
||
href="http://www.w3.org/Graphics/SVG/">SVG</a> called <a
|
||
href="http://www.levien.com/svg/">gill</a>.</p>
|
||
|
||
<h2><a name="Documentat">Documentation</a></h2>
|
||
|
||
<p>The code is commented in a <a href=" |