Click here to Skip to main content
15,891,926 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: gaming proiject with XML Pin
Richard MacCutchan9-Oct-09 1:22
mveRichard MacCutchan9-Oct-09 1:22 
AnswerRe: gaming proiject with XML Pin
Christian Graus22-Oct-09 18:31
protectorChristian Graus22-Oct-09 18:31 
QuestionHow to implement tokenize in XSLT Pin
sito428-Oct-09 21:08
sito428-Oct-09 21:08 
QuestionGetting Values [modified] Pin
sriharsha_127-Oct-09 18:20
sriharsha_127-Oct-09 18:20 
AnswerRe: Getting Values Pin
Richard MacCutchan9-Oct-09 4:35
mveRichard MacCutchan9-Oct-09 4:35 
AnswerRe: Getting Values Pin
sriharsha_129-Oct-09 17:42
sriharsha_129-Oct-09 17:42 
QuestionDelete InnerText with its node. [modified] Pin
eawedat6-Oct-09 9:43
eawedat6-Oct-09 9:43 
AnswerRe: Delete InnerText with its node. Pin
Nisha Agrawal6-Oct-09 19:46
Nisha Agrawal6-Oct-09 19:46 
First of all, i would say that you have to remove a node not it's innertext. So you need to find the node.
Second thing, IS all the album node is named as albume1 or is it the name of the Alubum?

anyways you can remove the child node in this way.

XmlDocument _xmlDoc = new XmlDocument();
if (System.IO.File.Exists(xmlDbFilepath))
{
    _xmlDoc.Load(xmlDbFilepath);
}

XmlNode albumNode = _xmlDoc.SelectSingleNode("/root/album");
if (albumNode != null)
{
     foreach (XmlNode node in albumNode.ChildNodes)
     {
        if (node.InnerText.trim() == fileName)
        {
           albumNode.RemoveChild(node);
        }
     }
}

I hope it will help you.
GeneralRe: Delete InnerText with its node. Pin
eawedat6-Oct-09 22:30
eawedat6-Oct-09 22:30 
GeneralRe: Delete InnerText with its node. Pin
eawedat6-Oct-09 22:53
eawedat6-Oct-09 22:53 
AnswerRe: Delete InnerText with its node. Pin
Nisha Agrawal7-Oct-09 0:10
Nisha Agrawal7-Oct-09 0:10 
GeneralRe: Delete InnerText with its node. Pin
eawedat7-Oct-09 0:40
eawedat7-Oct-09 0:40 
QuestionHow to apply wild cards on Attribute Value? Pin
vhassan4-Oct-09 19:44
vhassan4-Oct-09 19:44 
AnswerRe: How to apply wild cards on Attribute Value? Pin
Stuart Dootson5-Oct-09 22:21
professionalStuart Dootson5-Oct-09 22:21 
QuestionCompletly stuck.... With XML Sorting Pin
Axiom70m4-Oct-09 1:25
Axiom70m4-Oct-09 1:25 
AnswerRe: Completly stuck.... With XML Sorting Pin
Christian Graus4-Oct-09 11:23
protectorChristian Graus4-Oct-09 11:23 
QuestionHow do i auto generate Create, insert, update and delete command from Xml file Pin
femyJames28-Sep-09 2:38
femyJames28-Sep-09 2:38 
AnswerRe: How do i auto generate Create, insert, update and delete command from Xml file Pin
Richard MacCutchan28-Sep-09 3:49
mveRichard MacCutchan28-Sep-09 3:49 
AnswerRe: How do i auto generate Create, insert, update and delete command from Xml file Pin
Christian Graus3-Oct-09 11:57
protectorChristian Graus3-Oct-09 11:57 
QuestionXML Column in SQL Server 2005 Pin
Kartik Kumar28-Sep-09 0:00
Kartik Kumar28-Sep-09 0:00 
AnswerRe: XML Column in SQL Server 2005 [modified] Pin
Nisha Agrawal28-Sep-09 0:44
Nisha Agrawal28-Sep-09 0:44 
QuestionNamespace Parsing Problem Pin
sdsuzuki24-Sep-09 6:50
sdsuzuki24-Sep-09 6:50 
AnswerRe: Namespace Parsing Problem Pin
Stuart Dootson24-Sep-09 10:12
professionalStuart Dootson24-Sep-09 10:12 
AnswerRe: Namespace Parsing Problem Pin
sdsuzuki24-Sep-09 17:14
sdsuzuki24-Sep-09 17:14 
GeneralRe: Namespace Parsing Problem Pin
Stuart Dootson25-Sep-09 2:40
professionalStuart Dootson25-Sep-09 2:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.