1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-09-22 13:44:13 +03:00

Fixed formatting, Daniel.

This commit is contained in:
Daniel Veillard
2001-02-10 09:40:10 +00:00
parent 7f41b3eb5b
commit 62bccd56c9

View File

@@ -141,23 +141,21 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
<h2><a name="Developper">Developper</a> corner</h2> <h2><a name="Developper">Developper</a> corner</h2>
<ol> <ol>
<li>Extra nodes in the document: <li>Extra nodes in the document:
<p><em>For a XML file as below:</em><br> <p><em>For a XML file as below:</em></p>
</p> <pre>&lt;?xml version="1.0"?&gt;
<p><code><em>&lt;?xml version="1.0"?&gt;</em></code></p> &lt;PLAN
<p><code><em>&lt;PLAN xmlns="http://www.argus.ca/autotest/1.0/"&gt;
xmlns="http://www.argus.ca/autotest/1.0/"&gt;</em></code></p> &lt;NODE CommFlag="0"/&gt;
<p><code><em>&lt;NODE CommFlag="0"/&gt;</em></code></p> &lt;NODE CommFlag="1"/&gt;
<p><code><em>&lt;NODE CommFlag="1"/&gt;</em></code></p> &lt;/PLAN&gt;</pre>
<p><code><em>&lt;/PLAN&gt; </em></code></p> <p><em>after parsing it with the function pxmlDoc=xmlParseFile(...);</em></p>
<p><em>after parsing it with the function
pxmlDoc=xmlParseFile(...);</em></p>
<p><em>I want to the get the content of the first node (node with the <p><em>I want to the get the content of the first node (node with the
CommFlag="0")</em></p> CommFlag="0")</em></p>
<p><em>so I did it as following;</em></p> <p><em>so I did it as following;</em></p>
<p><code><em>xmlNodePtr pode;</em></code></p> <pre>xmlNodePtr pode;
<p><code><em>pnode=pxmlDoc-&gt;children-&gt;children;</em></code></p> pnode=pxmlDoc-&gt;children-&gt;children;</pre>
<p><em>but it does not work. If I change it to</em></p> <p><em>but it does not work. If I change it to</em></p>
<p><code><em>pnode=pxmlDoc-&gt;children-&gt;children-&gt;next;</em></code></p> <pre>pnode=pxmlDoc-&gt;children-&gt;children-&gt;next;</pre>
<p><em>then it works. Can someone explain it to me.</em></p> <p><em>then it works. Can someone explain it to me.</em></p>
<p></p> <p></p>
<p>In XML all characters in the content of the document are signifficant <p>In XML all characters in the content of the document are signifficant