Header Text Coming Soon! You can Contact Us below anytime!
Assembly: SpiderMaster.Net (in SpiderMaster.Net.dll) Version: 0.0.6.0 (0.0.6.0)
[This is preliminary documentation and is subject to change.]
Static Xml related utility functions.
Namespace:
SpiderMasterAssembly: SpiderMaster.Net (in SpiderMaster.Net.dll) Version: 0.0.6.0 (0.0.6.0)
Syntax
| C# | Visual Basic | Visual C++ |
public sealed class XmlUtility
Public NotInheritable Class XmlUtility
public ref class XmlUtility sealed
Members
| All Members | Methods |
| Member | Description | |
|---|---|---|
| EscapeXml(String) | Escapes xml
| |
| FormatNicely(String) | Pretty Print the input XML string, such as adding indentations to each level of elements
and carriage return to each line
| |
| FragmentToNode(String) | Convert a fragment of xml to an xml node
| |
| GetAttributeValue(XPathNavigator, String) | Gets the attribute value for the Current node of xNav_. Throws an Exception if attrName_ does not exist.
| |
| GetAttributeValue(XPathNavigator, String, String) | Gets the attribute value for the Current node of xNav_. Returns defaultValue if attrName_ does not exist.
| |
| LoadXMLFromFile(String) | this takes a file path and return an xmldocument
| |
| RemoveAllChildrenFrom(XmlNode) | Remove all children (but not attributes) from specified node
| |
| Serialize(Object) | Serializes an object to xml using the XmlSerialization.
The obj must have the xml attributes used for serialization.
| |
| TransformXml(String, String) |
Generates html by transforming the xml to html
using xsl file specified.
| |
| TransformXml(TextReader, TextReader, TextWriter) |
Transforms the XML.
|