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:
24
doc/FAQ.html
24
doc/FAQ.html
@@ -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><?xml version="1.0"?>
|
||||||
<p><code><em><?xml version="1.0"?></em></code></p>
|
<PLAN
|
||||||
<p><code><em><PLAN
|
xmlns="http://www.argus.ca/autotest/1.0/">
|
||||||
xmlns="http://www.argus.ca/autotest/1.0/"></em></code></p>
|
<NODE CommFlag="0"/>
|
||||||
<p><code><em><NODE CommFlag="0"/></em></code></p>
|
<NODE CommFlag="1"/>
|
||||||
<p><code><em><NODE CommFlag="1"/></em></code></p>
|
</PLAN></pre>
|
||||||
<p><code><em></PLAN> </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->children->children;</em></code></p>
|
pnode=pxmlDoc->children->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->children->children->next;</em></code></p>
|
<pre>pnode=pxmlDoc->children->children->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
|
||||||
|
Reference in New Issue
Block a user