Click here to Skip to main content
14,694,397 members
Home » Discussions » XML / XSL
   

XML / XSL

 
AnswerRe: gaming proiject with XML Pin
Richard MacCutchan9-Oct-09 2:22
mveRichard MacCutchan9-Oct-09 2:22 
AnswerRe: gaming proiject with XML Pin
Christian Graus22-Oct-09 19:31
mveChristian Graus22-Oct-09 19:31 
QuestionHow to implement tokenize in XSLT Pin
sito428-Oct-09 22:08
Membersito428-Oct-09 22:08 
QuestionGetting Values [modified] Pin
sriharsha_127-Oct-09 19:20
Membersriharsha_127-Oct-09 19:20 
AnswerRe: Getting Values Pin
Richard MacCutchan9-Oct-09 5:35
mveRichard MacCutchan9-Oct-09 5:35 
AnswerRe: Getting Values Pin
sriharsha_129-Oct-09 18:42
Membersriharsha_129-Oct-09 18:42 
QuestionDelete InnerText with its node. [modified] Pin
eawedat6-Oct-09 10:43
Membereawedat6-Oct-09 10:43 
AnswerRe: Delete InnerText with its node. Pin
Nisha Agrawal6-Oct-09 20:46
MemberNisha Agrawal6-Oct-09 20: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 23:30
Membereawedat6-Oct-09 23:30 
GeneralRe: Delete InnerText with its node. Pin
eawedat6-Oct-09 23:53
Membereawedat6-Oct-09 23:53 
AnswerRe: Delete InnerText with its node. Pin
Nisha Agrawal7-Oct-09 1:10
MemberNisha Agrawal7-Oct-09 1:10 
GeneralRe: Delete InnerText with its node. Pin
eawedat7-Oct-09 1:40
Membereawedat7-Oct-09 1:40 
QuestionHow to apply wild cards on Attribute Value? Pin
vhassan4-Oct-09 20:44
Membervhassan4-Oct-09 20:44 
AnswerRe: How to apply wild cards on Attribute Value? Pin
Stuart Dootson5-Oct-09 23:21
professionalStuart Dootson5-Oct-09 23:21 
QuestionCompletly stuck.... With XML Sorting Pin
Axiom70m4-Oct-09 2:25
MemberAxiom70m4-Oct-09 2:25 
AnswerRe: Completly stuck.... With XML Sorting Pin
Christian Graus4-Oct-09 12:23
mveChristian Graus4-Oct-09 12:23 
QuestionHow do i auto generate Create, insert, update and delete command from Xml file Pin
femyJames28-Sep-09 3:38
MemberfemyJames28-Sep-09 3:38 
AnswerRe: How do i auto generate Create, insert, update and delete command from Xml file Pin
Richard MacCutchan28-Sep-09 4:49
mveRichard MacCutchan28-Sep-09 4:49 
AnswerRe: How do i auto generate Create, insert, update and delete command from Xml file Pin
Christian Graus3-Oct-09 12:57
mveChristian Graus3-Oct-09 12:57 
QuestionXML Column in SQL Server 2005 Pin
Kartik Kumar28-Sep-09 1:00
MemberKartik Kumar28-Sep-09 1:00 
AnswerRe: XML Column in SQL Server 2005 [modified] Pin
Nisha Agrawal28-Sep-09 1:44
MemberNisha Agrawal28-Sep-09 1:44 
QuestionNamespace Parsing Problem Pin
sdsuzuki24-Sep-09 7:50
Membersdsuzuki24-Sep-09 7:50 
AnswerRe: Namespace Parsing Problem Pin
Stuart Dootson24-Sep-09 11:12
professionalStuart Dootson24-Sep-09 11:12 
AnswerRe: Namespace Parsing Problem Pin
sdsuzuki24-Sep-09 18:14
Membersdsuzuki24-Sep-09 18:14 
GeneralRe: Namespace Parsing Problem Pin
Stuart Dootson25-Sep-09 3:40
professionalStuart Dootson25-Sep-09 3: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.