public static class XmlUtils : object
| Member | Description | |
|---|---|---|
![]() ![]() |
CreateXmlNamespaceManager | Creates an Xml NamespaceManager for an XML document by looking at all of the namespaces defined on the document root element. public static XmlNamespaceManager CreateXmlNamespaceManager(XmlDocument doc,
string defaultNamespace); |
![]() ![]() |
GetXmlAttributeInt | Returns an integer value from an attribute public static int GetXmlAttributeInt(XmlNode node,
string attributeName, int defaultValue); |
![]() ![]() |
GetXmlAttributeString | Gets an attribute by name public static string GetXmlAttributeString(XmlNode node,
string attributeName); |
![]() ![]() |
GetXmlBool | Retrieves a result bool from an XPATH query. false if not found. public static bool GetXmlBool(XmlNode node,
string XPath, XmlNamespaceManager ns); |
![]() ![]() |
GetXmlDateTime | Retrieves a result DateTime from an XPATH query. 1/1/1900 if not found. public static DateTime GetXmlDateTime(XmlNode node,
string XPath, XmlNamespaceManager ns); |
![]() ![]() |
GetXmlInt | Retrieves a result int value from an XPATH query. 0 if not found. public static int GetXmlInt(XmlNode node,
string XPath, XmlNamespaceManager ns); |
![]() ![]() |
GetXmlString | Retrieves a result string from an XPATH query. Null if not found. public static string GetXmlString(XmlNode node,
string XPath, XmlNamespaceManager ns); |
![]() ![]() |
MapTypeToXmlType | Converts a .NET type into an XML compatible type - roughly public static string MapTypeToXmlType(Type type);
|
![]() ![]() |
MapXmlTypeToType | public static Type MapXmlTypeToType(string xmlType);
|