Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > XML

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-06-2009, 04:41 PM
eawedat eawedat is offline
Registered User
 
Join Date: Oct 2009
Posts: 1
Delete InnerText including its node.

hey all.
I have this code

<albume1>
<file>Mortal.mp3</file>
<file>Seek.mp3</file>
</album2>

and need function which is written in C#.NET
to do these things

gets name of file as parameter/

void RemoveLine(string name)
{
searchs in albume1 the name lets take for example "Seek.mp3"
found one delete the whole line
<file>Seek.mp3</file>
}

so the final result/save of XML file would be :
<albume1>
<file>Mortal.mp3</file>
</album2>

I tried with InnerText attribute but InnerText takes whole Textes which appear among the two tags <file></file>

thanks.
Reply With Quote
  #2  
Old 10-07-2009, 08:43 AM
Hack's Avatar
Hack Hack is offline
Super Moderator
 
Join Date: Apr 2007
Location: Sterling Heights, Michigan
Posts: 7,719
Do these help?

http://www.databasejournal.com/featu...erver-2008.htm

http://www.c-sharpcorner.com/article...ubsectionid=79

http://www.codeproject.com/KB/cpp/XMLReadWrite.aspx
__________________
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista

Microsoft MVP 2005/2006/2007/2008/2009
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
doubly linked lists noobie_coder C++ 4 10-04-2008 04:35 AM
about deletenode for BT !!!! M O H R A Java 1 04-29-2006 10:02 AM
help reg creating ms access file vbcoder VB Classic 9 04-28-2005 01:36 PM
EMERGENT.... double linked list mary Java 0 07-20-2001 09:42 AM
How to delete a node Manish Gupta XML 0 06-09-2000 09:45 AM


All times are GMT -4. The time now is 08:31 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.