xml appendchilde
-
hi guys, i have a simple xml structure and would like to append certain nodes at a specific point: well, i would like to append another element to the element. I have tried using XmlDocument.DocumentElement.appendChild() but this inserts my after the . I also tried using XmlDocument.DocumentElement.InsertAfter() or InsertBefore() but this gives errors... Please help me if anyone knows Regards morgs...
-
hi guys, i have a simple xml structure and would like to append certain nodes at a specific point: well, i would like to append another element to the element. I have tried using XmlDocument.DocumentElement.appendChild() but this inserts my after the . I also tried using XmlDocument.DocumentElement.InsertAfter() or InsertBefore() but this gives errors... Please help me if anyone knows Regards morgs...
XmlDocument LobjXmlDocument = new XmlDocument();
LobjXmlDocument.LoadXml(PstrXml);XmlNode LobjNode = LobjXmlDocument.SelectSingleNode("//smil/body/switch/par");
\ You need to append (do whatever) as LobjNode level.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.