Questions tagged [xmlnode]

XML document unit (element, entity, attribute, text, comment, notation, even document or it's fragment).

XML document unit (element, entity, attribute, text, comment, notation, even document or it's fragment). XML node types

486 questions
-2
votes
1 answer

I want to create an array containing my xmldocument nodes in c#

Hello I have created an xml file with motivational quotations, and I want to read those quotations into an array. Here is what my xml file looks like: Life is…
GaryDev
  • 15
  • 8
-2
votes
1 answer

create a node from the difference of two xml files with the same tag structure

Please consider this naive example: let $Best :=

-2
votes
2 answers

Wrap XmlNode with tags

I have XmlNode with some xml tags. And need to wrap this node into two parent tags "" and "". So what I do: XmlNode newObjectNode = doc.CreateNode(XmlNodeType.Element,"newobject", null); XmlNode objectNode = doc.CreateNode(XmlNodeType.Element,…
Gleb
  • 1,412
  • 1
  • 23
  • 55
-2
votes
1 answer

loop in xml and delete some values

Please help I want too loop through all the below xml and delete the "Att1" and Att2" leaving all the others untouched here is the example xml
Light_User
  • 83
  • 2
  • 11
-3
votes
1 answer

How to remove a Node from XML Node List using C#

I am having a XmlNodeList xnlSubParam XmlDocument xDoc = new XmlDocument(); xDoc.Load(somexml); XmlNode xnParamList = xDoc.SelectSingleNode("//tag"); XmlNodeList xnlSubParam =…
Aravind
  • 177
  • 1
  • 3
  • 13
-4
votes
2 answers

Why I get a nullPointerExeption?

I hope you can help me. I get an NullPointerExeption when I want to Put the NodeList / Node to my Map: Map config = null; public void loadConfiguration() { helper helper = new helper(); NodeList nodes = null; nodes =…
Burner
  • 981
  • 19
  • 41
1 2 3
32
33