Top "Xmldocument" questions

The original .NET type that represents an XML document.

Read XML Attribute using XmlDocument

How can I read an XML attribute using C#'s XmlDocument? I have an XML file which looks somewhat like …

c# .net xml xmldocument
Read XML file into XmlDocument

I am very new to C#. I have XML file (text.xml). I want to read that in XmlDocument and …

c# xml xmldocument
Convert XmlDocument to String

Here is how I'm currently converting XMLDocument to String StringWriter stringWriter = new StringWriter(); XmlTextWriter xmlTextWriter = new XmlTextWriter(stringWriter); xmlDoc.WriteTo(…

c# string escaping quotes xmldocument
Getting specified Node values from XML document

I have a problem going through an XML document (with C#) and get all the necessary values. I successfully go …

c# xml xmldocument
XDocument or XmlDocument

I am now learning XmlDocument but I've just ran into XDocument and when I try to search the difference or …

c# xml xmldocument linq-to-xml
XML Document to String

What's the simplest way to get the String representation of a XML Document (org.w3c.dom.Document)? That is …

java xml string dom xmldocument
What is the simplest way to get indented XML with line breaks from XmlDocument?

When I build XML up from scratch with XmlDocument, the OuterXml property already has everything nicely indented with line breaks. …

c# .net xmldocument outerxml
How to change XML Attribute

How can I change an attribute of an element in an XML file, using C#?

c# xml linq-to-xml xmldocument
Why "Data at the root level is invalid. Line 1, position 1." for XML Document?

I am using a third-party DLL which transmits an XML document over the internet. Why would the DLL be throwing …

.net xml xmldocument xmlreader
How to modify existing XML file with XmlDocument and XmlNode in C#

I already implemented to create the XML file below with XmlTextWriter when application initialization. And know I don't know how …

c# xml xmldocument xmlnode