Top "Xmldocument" questions

The original .NET type that represents an XML document.

How would you compare two XML Documents?

As part of the base class for some extensive unit testing, I am writing a helper function which recursively compares …

c# .net xml compare xmldocument
How to create a XmlDocument using XmlWriter in .NET?

Many .NET functions use XmlWriter to output/generate xml. Outputting to a file/string/memory is a very operation: XmlWriter …

.net xmldocument xmlwriter
How do I get the entire XML string from a XMLDocument returned by jQuery (cross browser)?

I have tried and failed to find out how to get the entire XML string from the XMLDocument returned by …

javascript jquery html xml xmldocument
How to prevent blank xmlns attributes in output from .NET's XmlDocument?

When generating XML from XmlDocument in .NET, a blank xmlns attribute appears the first time an element without an associated …

c# .net xml xml-namespaces xmldocument
Foreach loop XmlNodeList

Currently I have the following code: XmlDocument xDoc = new XmlDocument(); xDoc.Load("http://api.twitter.com/1/statuses/user_timeline.xml?…

c# foreach xmldocument
C# : Modify a xml node

i have that xml file : <?xml version="1.0" encoding="utf-8"?> <reminders> <reminder> <Title>…

c# xml xmldocument
how to save xmldocument to a stream

I've already written code to parse my xml file with an XmlReader so I don't want to rewrite it. I've …

c# xmldocument xmlreader
SelectSingleNode returns null when tag contains xmlNamespace

I'm loading a string into an XML document that contains the following structure: <?xml version="1.0" encoding="utf-8"?> <…

c# xml xmldocument selectsinglenode selectnodes
How to get XML with header (<?xml version="1.0"...)?

Consider the following simple code which creates an XML document and displays it. XmlDocument xml = new XmlDocument(); XmlElement root = xml.…

c# .net xml xmldocument
C# hexadecimal value 0x12, is an invalid character

I am loading a lot of xml documents and some of them return errors like "hexadecimal value 0x12, is an …

c# regex replace xmldocument