I was wondering how do you compare the value of a node or node contents<br>with a known value.<br><br>Xml Doc<br>-------------------------------------------------------------<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br>
<br>&lt;root&gt;<br>&nbsp;&nbsp;&nbsp; &lt;child1&gt;Hello&lt;/child1&gt;<br>&nbsp;&nbsp;&nbsp; &lt;child2&gt;World&lt;/child2&gt;<br>&lt;/root&gt;<br><br><br>Code Snippet<br>-------------------------------------------------------------<br>// get the first child node and its contents<br>
node = axl_node_get_first_child (node);<br>value = axl_node_get_content_trim (node, NULL);<br>printf(&quot;Useing the axl_node_get_first_child function. \n&quot;);<br>printf(&quot;%s \n\n&quot;, value);<br>&nbsp;&nbsp;&nbsp; <br>/* Does value == Hello? */<br>
if (value == &quot;Hello&quot;) {<br>&nbsp;&nbsp;&nbsp; printf(&quot;True \n&quot;);<br>}<br>else {<br>&nbsp;&nbsp;&nbsp; printf(&quot;False \n&quot;);<br>}<br><br><br>Terminal Output<br>-------------------------------------------------------------<br>
Useing the axl_node_get_first_child function. <br>Hello <br><br>False<br><br><br>The result always seems to be false.<br><br>Thanks Steven :)<br>