XmlHelper v1.01
Information
A class written in C# containing a series of static methods that carry out common tasks with XML :-
- AddAttrib(XmlElement, String, String)
Adds the Named attribute with a given value to an existing Node. - ReadAttrib(XmlElement, String)
Read a value from a given attribute on an existing node. - AddNode(XmlElement, String)
Create a new node on a given node. - AddTextNode(XmlElement, String, String)
Create a new text node on a given node with a given value. - ReadTextNode(XmlElement, String)
Read a value from a given text node on an existing node. - PrettyPrint(string strXML)
Attractively format the XML string with consistant indentation. - PrettyPrint(XmlDocument doc)
Attractively format XML Document with consistant indentation.
Download
XmlHelper_101.zip - 3.81 KB (3,903 bytes)
License
XmlHelper by Dave Henry is licensed under a Creative Commons Attribution-Share Alike 2.0 UK: England & Wales License.
Change Log
v1.01
- Added “static string PrettyPrint(string strXML)”
- Added “static string PrettyPrint(XmlDocument doc)”
v1.00
- Initial Release.
