mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-10 01:17:37 +03:00
Fixed formatting, Daniel.
This commit is contained in:
parent
7f41b3eb5b
commit
62bccd56c9
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>
|
||||
<ol>
|
||||
<li>Extra nodes in the document:
|
||||
<p><em>For a XML file as below:</em><br>
|
||||
</p>
|
||||
<p><code><em><?xml version="1.0"?></em></code></p>
|
||||
<p><code><em><PLAN
|
||||
xmlns="http://www.argus.ca/autotest/1.0/"></em></code></p>
|
||||
<p><code><em><NODE CommFlag="0"/></em></code></p>
|
||||
<p><code><em><NODE CommFlag="1"/></em></code></p>
|
||||
<p><code><em></PLAN> </em></code></p>
|
||||
<p><em>after parsing it with the function
|
||||
pxmlDoc=xmlParseFile(...);</em></p>
|
||||
<p><em>For a XML file as below:</em></p>
|
||||
<pre><?xml version="1.0"?>
|
||||
<PLAN
|
||||
xmlns="http://www.argus.ca/autotest/1.0/">
|
||||
<NODE CommFlag="0"/>
|
||||
<NODE CommFlag="1"/>
|
||||
</PLAN></pre>
|
||||
<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
|
||||
CommFlag="0")</em></p>
|
||||
<p><em>so I did it as following;</em></p>
|
||||
<p><code><em>xmlNodePtr pode;</em></code></p>
|
||||
<p><code><em>pnode=pxmlDoc->children->children;</em></code></p>
|
||||
<pre>xmlNodePtr pode;
|
||||
pnode=pxmlDoc->children->children;</pre>
|
||||
<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></p>
|
||||
<p>In XML all characters in the content of the document are signifficant
|
||||
|
Loading…
Reference in New Issue
Block a user