<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 12: ezxml_cut  not functioning properly_modified</title><link>https://sourceforge.net/p/ezxml/bugs/12/</link><description>Recent changes to 12: ezxml_cut  not functioning properly_modified</description><atom:link href="https://sourceforge.net/p/ezxml/bugs/12/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 13 Jun 2014 12:57:11 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ezxml/bugs/12/feed.rss" rel="self" type="application/rss+xml"/><item><title>#12 ezxml_cut  not functioning properly_modified</title><link>https://sourceforge.net/p/ezxml/bugs/12/?limit=25#439e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;got the solution, we need to traverse top level node by node instead of taking node and traversing and removing.&lt;/p&gt;
&lt;p&gt;thanks for not replying.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ramesh P</dc:creator><pubDate>Fri, 13 Jun 2014 12:57:11 -0000</pubDate><guid>https://sourceforge.net3baa43d701e5b1befba7d0fc2f65139bbbb34053</guid></item><item><title>ezxml_cut  not functioning properly_modified</title><link>https://sourceforge.net/p/ezxml/bugs/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;I'm facing problem with ezxml_cut function. and using ezxml-0.8.6 version.&lt;/p&gt;
&lt;p&gt;when we try to remove node, it is not removing selected node instead it's removing below nodes.&lt;/p&gt;
&lt;h2 id="code"&gt;code&lt;/h2&gt;
&lt;p&gt;void load_xml(ezxml_t root){&lt;br /&gt;
char *xml = ezxml_toxml(root);&lt;br /&gt;
printf("%s\n", xml);&lt;br /&gt;
free(xml);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;int main(int argc, char **argv)&lt;br /&gt;
{&lt;/p&gt;
&lt;p&gt;if (argc &amp;lt; 2){&lt;br /&gt;
printf("usage: ./test ");&lt;br /&gt;
exit(1);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;int flag=0;&lt;br /&gt;
const char str=NULL;&lt;br /&gt;
char p=NULL;&lt;/p&gt;
&lt;p&gt;ezxml_t root = ezxml_parse_file(argv&lt;span&gt;[1]&lt;/span&gt;);&lt;br /&gt;
ezxml_t get_child_tmp1;&lt;/p&gt;
&lt;p&gt;get_child_tmp1 = ezxml_child(root,"LANDevice");&lt;br /&gt;
p = get_child_tmp1-&amp;gt;child;&lt;br /&gt;
while( get_child_tmp1-&amp;gt;child != NULL){&lt;br /&gt;
printf("%s\n",ezxml_name(get_child_tmp1-&amp;gt;child));&lt;br /&gt;
if (!strcmp(ezxml_name(get_child_tmp1-&amp;gt;child),"WLANConfiguration")){&lt;br /&gt;
if(flag == 0){&lt;br /&gt;
str = ezxml_attr(get_child_tmp1-&amp;gt;child,"instance");&lt;br /&gt;
if(!(strcmp(str,"3"))){&lt;br /&gt;
ezxml_cut(get_child_tmp1-&amp;gt;child); /trying to delete node 3 of WLANConfiguration&lt;br /&gt;
flag=1;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
get_child_tmp1-&amp;gt;child = get_child_tmp1-&amp;gt;child-&amp;gt;ordered;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;get_child_tmp1-&amp;gt;child = p;&lt;/p&gt;
&lt;p&gt;load_xml(get_child_tmp1);&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Can you please find attached input_out_xml.txt file for input and expected output info and help me to solve this problem or is anything wrong with my code&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ramesh P</dc:creator><pubDate>Wed, 11 Jun 2014 07:50:42 -0000</pubDate><guid>https://sourceforge.net580c5d0fd0606792427136c81cee19bedf18973c</guid></item></channel></rss>