1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-07 06:43:02 +03:00

Updated docs, Daniel.

This commit is contained in:
Daniel Veillard
2000-03-06 07:41:49 +00:00
parent 3e6d237ff7
commit f13e1ed19c
3 changed files with 106 additions and 83 deletions

View File

@@ -1,3 +1,7 @@
Mon Mar 6 09:34:52 CET 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* doc/xml.html, doc/update.html: updated docs, 1.8.7
Sat Mar 4 16:14:42 CET 2000 Daniel Veillard <Daniel.Veillard@w3.org> Sat Mar 4 16:14:42 CET 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* doc/* : rebuilt the docs * doc/* : rebuilt the docs

View File

@@ -3,7 +3,7 @@
<html> <html>
<head> <head>
<title>Upgrading libxml client code from 1.x to 2.x</title> <title>Upgrading libxml client code from 1.x to 2.x</title>
<meta name="GENERATOR" content="amaya V2.4"> <meta name="GENERATOR" content="amaya V2.1">
<meta http-equiv="Content-Type" content="text/html"> <meta http-equiv="Content-Type" content="text/html">
</head> </head>
@@ -38,7 +38,7 @@ mail</a>:</p>
(probablility of having "childs" anywere else is close to 0+</li> (probablility of having "childs" anywere else is close to 0+</li>
<li>The document don't have anymore a <strong>root</strong> element it has <li>The document don't have anymore a <strong>root</strong> element it has
been replaced by <strong>children</strong> and usually you will get a list been replaced by <strong>children</strong> and usually you will get a list
of element here. <EFBFBD>or example a Dtd element for the internal subset and of element here. For example a Dtd element for the internal subset and
it's declaration may be found in that list, as well as processing it's declaration may be found in that list, as well as processing
instructions or comments found before or after the document root element. instructions or comments found before or after the document root element.
Use <strong>xmlDocGetRootElement(doc)</strong> to get the root element of Use <strong>xmlDocGetRootElement(doc)</strong> to get the root element of
@@ -77,6 +77,6 @@ upgrade, it may cost a lot on the long term ...</p>
<p><a href="mailto:Daniel.Veillard@w3.org">Daniel Veillard</a></p> <p><a href="mailto:Daniel.Veillard@w3.org">Daniel Veillard</a></p>
<p>$Id$</p> <p>$Id: upgrade.html,v 1.1 2000/03/04 11:39:43 veillard Exp $</p>
</body> </body>
</html> </html>

View File

@@ -3,7 +3,7 @@
<html> <html>
<head> <head>
<title>The XML library for Gnome</title> <title>The XML library for Gnome</title>
<meta name="GENERATOR" content="amaya V2.4"> <meta name="GENERATOR" content="amaya V2.1">
<meta http-equiv="Content-Type" content="text/html"> <meta http-equiv="Content-Type" content="text/html">
</head> </head>
@@ -42,9 +42,10 @@
<h2><a name="Introducti">Introduction</a></h2> <h2><a name="Introducti">Introduction</a></h2>
<p>This document describes libxml, the <a href="http://www.w3.org/XML/">XML</a> <p>This document describes libxml, the <a
library provided in the <a href="http://www.gnome.org/">Gnome</a> framework. href="http://www.w3.org/XML/">XML</a> library provided in the <a
XML is a standard for building tag-based structured documents/data.</p> href="http://www.gnome.org/">Gnome</a> framework. XML is a standard for
building tag-based structured documents/data.</p>
<p>Here are some key points about libxml:</p> <p>Here are some key points about libxml:</p>
<ul> <ul>
@@ -56,9 +57,11 @@ XML is a standard for building tag-based structured documents/data.</p>
<li>Libxml now includes a nearly complete <a <li>Libxml now includes a nearly complete <a
href="http://www.w3.org/TR/xpath">XPath</a> implementation.</li> href="http://www.w3.org/TR/xpath">XPath</a> implementation.</li>
<li>Libxml exports Push and Pull type parser interfaces for both XML and <li>Libxml exports Push and Pull type parser interfaces for both XML and
HTML.</li> HTML.</li>
<li>This library is released both under the W3C Copyright and the GNU LGPL. <li>This library is released both under the W3C Copyright and the GNU LGPL.
Basically, everybody should be happy; if not, drop me a mail.</li> Basically, everybody should be happy; if not, drop me a mail.</li>
<li>There is <a href="upgrade.html">a first set of instruction</a>
concerning upgrade from libxml-1.x to libxml-2.x </li>
</ul> </ul>
<h2><a name="Documentat">Documentation</a></h2> <h2><a name="Documentat">Documentation</a></h2>
@@ -138,11 +141,11 @@ platform, get in touch with me to upload the package. I will keep them in the
<ul> <ul>
<li><p>The <a href="http://dev.w3.org/cvsweb/XML/">W3C CVS base</a>, <li><p>The <a href="http://dev.w3.org/cvsweb/XML/">W3C CVS base</a>,
available read-only using the CVS pserver authentification (I tend to use available read-only using the CVS pserver authentification (I tend to use
this base for my own development, so it's updated more regularly, but this base for my own development, so it's updated more regularly, but the
the content may not be as stable):</p> content may not be as stable):</p>
<pre>CVSROOT=:pserver:anonymous@dev.w3.org:/sources/public <pre>CVSROOT=:pserver:anonymous@dev.w3.org:/sources/public
password: anonymous password: anonymous
module: XML</pre> module: XML</pre>
</li> </li>
<li><p>The <a <li><p>The <a
href="http://cvs.gnome.org/bonsai/rview.cgi?cvsroot=/cvs/gnome&amp;dir=gnome-xml">Gnome href="http://cvs.gnome.org/bonsai/rview.cgi?cvsroot=/cvs/gnome&amp;dir=gnome-xml">Gnome
@@ -163,12 +166,14 @@ for really accurate description</h3>
<li>huge work toward libxml-2.0: This work is available only in W3C CVs base <li>huge work toward libxml-2.0: This work is available only in W3C CVs base
for the moment. You get the <a for the moment. You get the <a
href="ftp://rpmfind.net/pub/libxml/cvs-snapshot.tar.gz">snapshot</a> for href="ftp://rpmfind.net/pub/libxml/cvs-snapshot.tar.gz">snapshot</a> for
the updated version: the updated version:
<ul> <ul>
<li>fix I18N support. ISO-Latin-x/UTF-8/UTF-16 seems correctly handled <li>fix I18N support. ISO-Latin-x/UTF-8/UTF-16 seems correctly handled
now</li> now</li>
<li>Better handling of entities</li> <li>Better handling of entities, especially well formedness checking and
proper PEref extensions in external subsets</li>
<li>DTD conditional sections</li> <li>DTD conditional sections</li>
<li>Validation now correcly handle entities content</li>
<li><a href="http://rpmfind.net/tools/gdome/messages/0039.html">change <li><a href="http://rpmfind.net/tools/gdome/messages/0039.html">change
structures to accomodate DOM</a></li> structures to accomodate DOM</a></li>
<li>Lot of work toward a better compliance. I'm now running and <li>Lot of work toward a better compliance. I'm now running and
@@ -179,6 +184,22 @@ for really accurate description</h3>
</li> </li>
</ul> </ul>
<h3>1.8.7: Mar 6 2000</h3>
<ul>
<li>This is a bug fix release:</li>
<li>It is possible to disable the ignorable blanks heuristic used by
libxml-1.x, a new function xmlKeepBlanksDefault(0) will allow this. Note
that for adherence to XML spec, this behaviour will be disabled by default
in 2.x . The same function will allow to keep compatibility for old
code.</li>
<li>Blanks in &lt;a> &lt;/a> constructs are not ignored anymore, avoiding
heuristic is really the Right Way :-\</li>
<li>The unchecked use of snprintf which was breaking libxml-1.8.6
compilation on some platforms has been fixed</li>
<li>nanoftp.c nanohttp.c: Fixed '#' and '?' stripping when processing
URIs</li>
</ul>
<h3>1.8.6: Jan 31 2000</h3> <h3>1.8.6: Jan 31 2000</h3>
<ul> <ul>
<li>added a nanoFTP transport module, debugged until the new version of <a <li>added a nanoFTP transport module, debugged until the new version of <a
@@ -209,8 +230,7 @@ for really accurate description</h3>
<h3>1.8.3: Jan 5 2000</h3> <h3>1.8.3: Jan 5 2000</h3>
<ul> <ul>
<li>a Push interface for the XML and HTML parsers</li> <li>a Push interface for the XML and HTML parsers</li>
<li>a shell-like interface to the document tree (try tester --shell <li>a shell-like interface to the document tree (try tester --shell :-)</li>
:-)</li>
<li>lots of bug fixes and improvement added over XMas hollidays</li> <li>lots of bug fixes and improvement added over XMas hollidays</li>
<li>fixed the DTD parsing code to work with the xhtml DTD</li> <li>fixed the DTD parsing code to work with the xhtml DTD</li>
<li>added xmlRemoveProp(), xmlRemoveID() and xmlRemoveRef()</li> <li>added xmlRemoveProp(), xmlRemoveID() and xmlRemoveRef()</li>
@@ -299,8 +319,8 @@ for really accurate description</h3>
<h2><a name="XML">XML</a></h2> <h2><a name="XML">XML</a></h2>
<p><a href="http://www.w3.org/TR/REC-xml">XML is a standard</a> for <p><a href="http://www.w3.org/TR/REC-xml">XML is a standard</a> for
markup-based structured documents. Here is <a name="example">an example markup-based structured documents. Here is <a name="example">an example XML
XML document</a>:</p> document</a>:</p>
<pre>&lt;?xml version="1.0"?> <pre>&lt;?xml version="1.0"?>
&lt;EXAMPLE prop1="gnome is great" prop2="&amp;amp; linux too"> &lt;EXAMPLE prop1="gnome is great" prop2="&amp;amp; linux too">
&lt;head> &lt;head>
@@ -317,25 +337,24 @@ XML document</a>:</p>
<p>The first line specifies that it's an XML document and gives useful <p>The first line specifies that it's an XML document and gives useful
information about its encoding. Then the document is a text format whose information about its encoding. Then the document is a text format whose
structure is specified by tags between brackets. <strong>Each tag opened has structure is specified by tags between brackets. <strong>Each tag opened has
to be closed</strong>. XML is pedantic about this. However, if a tag is to be closed</strong>. XML is pedantic about this. However, if a tag is empty
empty (no content), a single tag can serve as both the opening and closing (no content), a single tag can serve as both the opening and closing tag if it
tag if it ends with <code>/></code> rather than with <code>></code>. ends with <code>/></code> rather than with <code>></code>. Note that, for
Note that, for example, the example, the image tag has no content (just an attribute) and is closed by
image tag has no content (just an attribute) and is closed by ending the ending the tag with <code>/></code>.</p>
tag with <code>/></code>.</p>
<p>XML can be applied sucessfully to a wide range of uses, from long term <p>XML can be applied sucessfully to a wide range of uses, from long term
structured document maintenance (where it follows the steps of SGML) to simple structured document maintenance (where it follows the steps of SGML) to simple
data encoding mechanisms like configuration file formatting (glade), spreadsheets data encoding mechanisms like configuration file formatting (glade),
(gnumeric), or even shorter lived documents such as WebDAV where it is used to spreadsheets (gnumeric), or even shorter lived documents such as WebDAV where
encode remote calls between a client and a server.</p> it is used to encode remote calls between a client and a server.</p>
<h2><a name="tree">The tree output</a></h2> <h2><a name="tree">The tree output</a></h2>
<p>The parser returns a tree built during the document analysis. The value <p>The parser returns a tree built during the document analysis. The value
returned is an <strong>xmlDocPtr</strong> (i.e., a pointer to an returned is an <strong>xmlDocPtr</strong> (i.e., a pointer to an
<strong>xmlDoc</strong> structure). This structure contains information such as <strong>xmlDoc</strong> structure). This structure contains information such
the file name, the document type, and a <strong>root</strong> pointer which as the file name, the document type, and a <strong>root</strong> pointer which
is the root of the document (or more exactly the first child under the root is the root of the document (or more exactly the first child under the root
which is the document). The tree is made of <strong>xmlNode</strong>s, chained which is the document). The tree is made of <strong>xmlNode</strong>s, chained
in double-linked lists of siblings and with childs&lt;->parent relationship. in double-linked lists of siblings and with childs&lt;->parent relationship.
@@ -349,10 +368,10 @@ should be only one ELEMENT under the root):</p>
<p>In the source package there is a small program (not installed by default) <p>In the source package there is a small program (not installed by default)
called <strong>tester</strong> which parses XML files given as argument and called <strong>tester</strong> which parses XML files given as argument and
prints them back as parsed. This is useful for detecting errors both in XML code prints them back as parsed. This is useful for detecting errors both in XML
and in the XML parser itself. It has an option <strong>--debug</strong> which code and in the XML parser itself. It has an option <strong>--debug</strong>
prints the actual in-memory structure of the document, here is the result with which prints the actual in-memory structure of the document, here is the
the <a href="#example">example</a> given before:</p> result with the <a href="#example">example</a> given before:</p>
<pre>DOCUMENT <pre>DOCUMENT
version=1.0 version=1.0
standalone=true standalone=true
@@ -391,13 +410,13 @@ standalone=true
memory. In that case (and if you don't expect to save back the XML document memory. In that case (and if you don't expect to save back the XML document
loaded using libxml), it's better to use the SAX interface of libxml. SAX is a loaded using libxml), it's better to use the SAX interface of libxml. SAX is a
<strong>callback-based interface</strong> to the parser. Before parsing, the <strong>callback-based interface</strong> to the parser. Before parsing, the
application layer registers a customized set of callbacks which are called application layer registers a customized set of callbacks which are called by
by the library as it progresses through the XML input.</p> the library as it progresses through the XML input.</p>
<p>To get more detailed step-by-step guidance on using the SAX interface of <p>To get more detailed step-by-step guidance on using the SAX interface of
libxml, see the libxml, see the
href="http://www.daa.com.au/~james/gnome/xml-sax/xml-sax.html">nice href="http://www.daa.com.au/~james/gnome/xml-sax/xml-sax.html">nice
documentation.</a> written by <a href="mailto:james@daa.com.au">James documentation.written by <a href="mailto:james@daa.com.au">James
Henstridge</a>.</p> Henstridge</a>.</p>
<p>You can debug the SAX behaviour by using the <strong>testSAX</strong> <p>You can debug the SAX behaviour by using the <strong>testSAX</strong>
@@ -471,7 +490,8 @@ defined in "parser.h":</p>
</dl> </dl>
<dl> <dl>
<dt><code>xmlDocPtr xmlParseFile(const char *filename);</code></dt> <dt><code>xmlDocPtr xmlParseFile(const char *filename);</code></dt>
<dd><p>Parse an XML document contained in a (possibly compressed) file.</p> <dd><p>Parse an XML document contained in a (possibly compressed)
file.</p>
</dd> </dd>
</dl> </dl>
@@ -532,9 +552,9 @@ limited to SAX. Just use the two first arguments of
<h3><a name="Building">Building a tree from scratch</a></h3> <h3><a name="Building">Building a tree from scratch</a></h3>
<p>The other way to get an XML tree in memory is by building it. Basically <p>The other way to get an XML tree in memory is by building it. Basically
there is a set of functions dedicated to building new elements. (These are also there is a set of functions dedicated to building new elements. (These are
described in "tree.h".) For example, here is a piece of code that produces the also described in "tree.h".) For example, here is a piece of code that
XML document used in the previous examples:</p> produces the XML document used in the previous examples:</p>
<pre> xmlDocPtr doc; <pre> xmlDocPtr doc;
xmlNodePtr tree, subtree; xmlNodePtr tree, subtree;
@@ -555,8 +575,8 @@ XML document used in the previous examples:</p>
<h3><a name="Traversing">Traversing the tree</a></h3> <h3><a name="Traversing">Traversing the tree</a></h3>
<p>Basically by <a href="gnome-xml-tree.html">including "tree.h"</a> your code <p>Basically by <a href="gnome-xml-tree.html">including "tree.h"</a> your code
has access to the internal structure of all the elements of the tree. The names has access to the internal structure of all the elements of the tree. The
should be somewhat simple like <strong>parent</strong>, names should be somewhat simple like <strong>parent</strong>,
<strong>childs</strong>, <strong>next</strong>, <strong>prev</strong>, <strong>childs</strong>, <strong>next</strong>, <strong>prev</strong>,
<strong>properties</strong>, etc... For example, still with the previous <strong>properties</strong>, etc... For example, still with the previous
example:</p> example:</p>
@@ -565,8 +585,8 @@ example:</p>
<p>points to the title element,</p> <p>points to the title element,</p>
<pre>doc->root->childs->next->child->child</pre> <pre>doc->root->childs->next->child->child</pre>
<p>points to the text node containing the chapter title "The Linux adventure". <p>points to the text node containing the chapter title "The Linux
</p> adventure".</p>
<p><strong>NOTE</strong>: XML allows <em>PI</em>s and <em>comments</em> to be <p><strong>NOTE</strong>: XML allows <em>PI</em>s and <em>comments</em> to be
present before the document root, so <code>doc->root</code> may point to an present before the document root, so <code>doc->root</code> may point to an
@@ -599,20 +619,19 @@ elements:</p>
*value);</code></dt> *value);</code></dt>
<dd><p>This function takes an "external" string and convert it to one text <dd><p>This function takes an "external" string and convert it to one text
node or possibly to a list of entity and text nodes. All non-predefined node or possibly to a list of entity and text nodes. All non-predefined
entity references like &amp;Gnome; will be stored internally as entity references like &amp;Gnome; will be stored internally as entity
entity nodes, hence the result of the function may not be a single nodes, hence the result of the function may not be a single node.</p>
node.</p>
</dd> </dd>
</dl> </dl>
<dl> <dl>
<dt><code>xmlChar *xmlNodeListGetString(xmlDocPtr doc, xmlNodePtr list, int <dt><code>xmlChar *xmlNodeListGetString(xmlDocPtr doc, xmlNodePtr list, int
inLine);</code></dt> inLine);</code></dt>
<dd><p>This function is the inverse of <code>xmlStringGetNodeList()</code>. <dd><p>This function is the inverse of
It generates a new string containing <code>xmlStringGetNodeList()</code>. It generates a new string
the content of the text and entity nodes. Note the extra argument containing the content of the text and entity nodes. Note the extra
inLine. If this argument is set to 1, the function will expand entity argument inLine. If this argument is set to 1, the function will expand
references. For example, instead of returning the &amp;Gnome; XML entity references. For example, instead of returning the &amp;Gnome;
encoding in the string, it will substitute it with its value (say, XML encoding in the string, it will substitute it with its value (say,
"GNU Network Object Model Environment"). Set this argument if you want "GNU Network Object Model Environment"). Set this argument if you want
to use the string for non-XML usage like User Interface.</p> to use the string for non-XML usage like User Interface.</p>
</dd> </dd>
@@ -634,16 +653,16 @@ elements:</p>
</dl> </dl>
<dl> <dl>
<dt><code>int xmlSaveFile(const char *filename, xmlDocPtr cur);</code></dt> <dt><code>int xmlSaveFile(const char *filename, xmlDocPtr cur);</code></dt>
<dd><p>Saves the document to a file. In this case, the compression interface <dd><p>Saves the document to a file. In this case, the compression
is triggered if it has been turned on.</p> interface is triggered if it has been turned on.</p>
</dd> </dd>
</dl> </dl>
<h3><a name="Compressio">Compression</a></h3> <h3><a name="Compressio">Compression</a></h3>
<p>The library transparently handles compression when doing file-based <p>The library transparently handles compression when doing file-based
accesses. The level of compression on saves can be turned on either globally or accesses. The level of compression on saves can be turned on either globally
individually for one file:</p> or individually for one file:</p>
<dl> <dl>
<dt><code>int xmlGetDocCompressMode (xmlDocPtr doc);</code></dt> <dt><code>int xmlGetDocCompressMode (xmlDocPtr doc);</code></dt>
<dd><p>Gets the document compression ratio (0-9).</p> <dd><p>Gets the document compression ratio (0-9).</p>
@@ -670,9 +689,9 @@ individually for one file:</p>
<p>Entities in principle are similar to simple C macros. An entity defines an <p>Entities in principle are similar to simple C macros. An entity defines an
abbreviation for a given string that you can reuse many times throughout the abbreviation for a given string that you can reuse many times throughout the
content of your document. Entities are especially useful when a given string content of your document. Entities are especially useful when a given string
may occur frequently within a document, or to confine the change needed may occur frequently within a document, or to confine the change needed to a
to a document to a restricted area in the internal subset of the document (at document to a restricted area in the internal subset of the document (at the
the beginning). Example:</p> beginning). Example:</p>
<pre>1 &lt;?xml version="1.0"?> <pre>1 &lt;?xml version="1.0"?>
2 &lt;!DOCTYPE EXAMPLE SYSTEM "example.dtd" [ 2 &lt;!DOCTYPE EXAMPLE SYSTEM "example.dtd" [
3 &lt;!ENTITY xml "Extensible Markup Language"> 3 &lt;!ENTITY xml "Extensible Markup Language">
@@ -691,11 +710,10 @@ for the character '>', <strong>&amp;apos;</strong> for the character ''',
<strong>&amp;amp;</strong> for the character '&amp;'.</p> <strong>&amp;amp;</strong> for the character '&amp;'.</p>
<p>One of the problems related to entities is that you may want the parser to <p>One of the problems related to entities is that you may want the parser to
substitute an entity's content so that you can see the replacement text in your substitute an entity's content so that you can see the replacement text in
application. your application. Or you may prefer to keep entity references as such in the
Or you may prefer to keep entity references as such in the content to be content to be able to save the document back without losing this usually
able to save the document back without losing this usually precious precious information (if the user went through the pain of explicitly defining
information (if the user went through the pain of explicitly defining
entities, he may have a a rather negative attitude if you blindly susbtitute entities, he may have a a rather negative attitude if you blindly susbtitute
them as saving time). The <a them as saving time). The <a
href="gnome-xml-parser.html#XMLSUBSTITUTEENTITIESDEFAULT">xmlSubstituteEntitiesDefault()</a> href="gnome-xml-parser.html#XMLSUBSTITUTEENTITIESDEFAULT">xmlSubstituteEntitiesDefault()</a>
@@ -744,26 +762,26 @@ structure and all elements or attributes within that namespace point to it.
Hence testing the namespace is a simple and fast equality operation at the Hence testing the namespace is a simple and fast equality operation at the
user level.</p> user level.</p>
<p>I suggest that people using libxml use a namespace, and declare it in <p>I suggest that people using libxml use a namespace, and declare it in the
the root element of their document as the default namespace. Then they don't root element of their document as the default namespace. Then they don't need
need to use the prefix in the content but we will have a basis for future to use the prefix in the content but we will have a basis for future semantic
semantic refinement and merging of data from different sources. This doesn't refinement and merging of data from different sources. This doesn't augment
augment significantly the size of the XML output, but significantly increase significantly the size of the XML output, but significantly increase its value
its value in the long-term.</p> in the long-term.</p>
<p>Concerning the namespace value, this has to be an URL, but the URL doesn't <p>Concerning the namespace value, this has to be an URL, but the URL doesn't
have to point to any existing resource on the Web. I suggest that it makes have to point to any existing resource on the Web. I suggest that it makes
sense to use an URL within a domain you control, and that the URL sense to use an URL within a domain you control, and that the URL should
should contain some kind of version information if possible. For example, contain some kind of version information if possible. For example,
<code>"http://www.gnome.org/gnumeric/1.0"</code> is a good namespace scheme. <code>"http://www.gnome.org/gnumeric/1.0"</code> is a good namespace scheme.
Then when you load a file, make sure that a namespace carrying the Then when you load a file, make sure that a namespace carrying the
version-independent prefix is installed on the root element of your document, version-independent prefix is installed on the root element of your document,
and if the version information don't match something you know, warn the user and if the version information don't match something you know, warn the user
and be liberal in what you accept as the input. Also do *not* try to base and be liberal in what you accept as the input. Also do *not* try to base
namespace checking on the prefix value. &lt;foo:text> may be exactly the same namespace checking on the prefix value. &lt;foo:text> may be exactly the same
as &lt;bar:text> in another document. What really matter is the URI as &lt;bar:text> in another document. What really matter is the URI associated
associated with the element or the attribute, not the prefix string (which is with the element or the attribute, not the prefix string (which is just a
just a shortcut for the full URI).</p> shortcut for the full URI).</p>
<p>@@Interfaces@@</p> <p>@@Interfaces@@</p>
@@ -771,8 +789,8 @@ just a shortcut for the full URI).</p>
<p>Usually people object using namespace in the case of validation, I object <p>Usually people object using namespace in the case of validation, I object
this and will make sure that using namespaces won't break validity checking, this and will make sure that using namespaces won't break validity checking,
so even is you plan to use or currently are using validation I strongly suggest so even is you plan to use or currently are using validation I strongly
adding namespaces to your document. A default namespace scheme suggest adding namespaces to your document. A default namespace scheme
<code>xmlns="http://...."</code> should not break validity even on less <code>xmlns="http://...."</code> should not break validity even on less
flexible parsers. Now using namespace to mix and differentiate content coming flexible parsers. Now using namespace to mix and differentiate content coming
from multiple DTDs will certainly break current validation schemes. I will try from multiple DTDs will certainly break current validation schemes. I will try
@@ -915,10 +933,11 @@ only a couple of functions, browsing the tree to gather the informations and
generate the internals structures is harder, and more error prone.</p> generate the internals structures is harder, and more error prone.</p>
<p>The suggested principle is to be tolerant with respect to the input <p>The suggested principle is to be tolerant with respect to the input
structure. For example, the ordering of the attributes is not significant, Cthe structure. For example, the ordering of the attributes is not significant,
XML specification is clear about it. It's also usually a good idea to not be Cthe XML specification is clear about it. It's also usually a good idea to not
dependent of the orders of the childs of a given node, unless it really makes be dependent of the orders of the childs of a given node, unless it really
things harder. Here is some code to parse the informations for a person:</p> makes things harder. Here is some code to parse the informations for a
person:</p>
<pre>/* <pre>/*
* A person record * A person record
*/ */
@@ -1047,6 +1066,6 @@ base under gnome-xml/example</p>
<p><a href="mailto:Daniel.Veillard@w3.org">Daniel Veillard</a></p> <p><a href="mailto:Daniel.Veillard@w3.org">Daniel Veillard</a></p>
<p>$Id: xml.html,v 1.26 2000/03/01 00:40:41 veillard Exp $</p> <p>$Id: xml.html,v 1.27 2000/03/02 00:15:55 veillard Exp $</p>
</body> </body>
</html> </html>