AP to delete a node in libxml parser
Hi
I have downloaded libxml2 parser and im using it from past 2 months.. But I am unable to find an api to delete a node.
for ex:
<?xml version="1.0"?>
<Powersettings>
<PowerScheme>Testing</PowerScheme>
<CPUSpeed>Adaptive</CPUSpeed>
<Screensaver>No</Screensaver>
<LockScreentime>0</LockScreentime>
<Wbrightvalue>128</Wbrightvalue>
<Ibrightvalue>0</Ibrightvalue>
<Dimtime>1</Dimtime>
<Monitortime>2</Monitortime>
<StandBytime>0</StandBytime>
<Hibernatetime>0</Hibernatetime>
<HardDiskTimeOut>0</HardDiskTimeOut>
<Logofftime>5</Logofftime>
<Shutdowntime>0</Shutdowntime>
<Shutdownflag>Yes</Shutdownflag>
<DownloadsFlag>No</DownloadsFlag>
<PPasswordprotected>No</PPasswordprotected>
<Appsensorname>(None)</Appsensorname>
</Powersettings>
In this xml I want to parse if the element contains 0, I have to delete that node(Ibrightvalue, Standbytime like this)..
I found these apis xmlUnlinkNode(next_node), xmlFreeNode(next_node). can i use these to delete a node..
|