Re: [xml] Problem removing nodes from a document



Keith Sharp wrote:
Hello,

I am trying to write some code that will walk through an XML document
and remove any nodes (and their children) with a particular name.
Unfortunately my code is not working as I expected.

I have attached a small example C program and XML document.

<snip>

I am probably overlooking something really simple, could some one point
it out for me :-)

Rather than point out the error with your coding, could I suggest that
you try to run your program under a "memory checker" (such as Valgrind)
and see what it tells you?  Using such tools before coming to a mailing
list for assistance is generally a good approach :-).

Thanks,

Keith.


Regards,

Bill




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]