LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2009, 08:04 AM   #1
naveenisback
Member
 
Registered: Jun 2009
Posts: 80
Blog Entries: 1

Rep: Reputation: 16
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..
 
Old 08-22-2009, 03:57 AM   #2
naveenisback
Member
 
Registered: Jun 2009
Posts: 80

Original Poster
Blog Entries: 1

Rep: Reputation: 16
Hi


we can use xmlUnlinkNode(next_node), xmlFreeNode(next_node) to delete a node.. I used it successfully..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysqld node of mysql cluster system not connecting to management node coal-fire-ice Linux - Server 1 07-27-2015 08:33 AM
checking for XML::Parser... configure: error: XML::Parser perl module is required for kornerr Linux - General 11 11-16-2008 07:24 AM
installing libxml-parser-perl_2.34.orig.tar andreas_skw Linux - Newbie 6 05-07-2008 11:42 PM
libxml-2.0 nodar Linux - Newbie 4 12-12-2007 07:30 PM
JavaScript:: alert(node) shows null, but node != null taylor_venable Programming 1 05-01-2006 09:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration