Class XmlUtils
Assembly: DotNetNuke.dll
Syntax
Constructors
XmlUtils()
Declaration
Methods
AppendElement(ref XmlDocument, XmlNode, string, string, bool)
Declaration
public static void AppendElement(ref XmlDocument objDoc, XmlNode objNode, string attName, string attValue, bool includeIfEmpty)
Parameters
AppendElement(ref XmlDocument, XmlNode, string, string, bool, bool)
Declaration
public static void AppendElement(ref XmlDocument objDoc, XmlNode objNode, string attName, string attValue, bool includeIfEmpty, bool cdata)
Parameters
CreateAttribute(XmlDocument, string, string)
Declaration
public static XmlAttribute CreateAttribute(XmlDocument objDoc, string attName, string attValue)
Parameters
Returns
CreateAttribute(XmlDocument, XmlNode, string, string)
Declaration
public static void CreateAttribute(XmlDocument objDoc, XmlNode objNode, string attName, string attValue)
Parameters
CreateCDataElement(XmlDocument, string, string)
Declaration
public static XmlElement CreateCDataElement(XmlDocument document, string nodeName, string nodeValue)
Parameters
Returns
CreateElement(XmlDocument, string, string)
Declaration
public static XmlElement CreateElement(XmlDocument document, string nodeName, string nodeValue)
Parameters
Returns
DeSerializeDictionary<TValue>(Stream, string)
Declaration
public static Dictionary<int, TValue> DeSerializeDictionary<TValue>(Stream objStream, string rootname)
Parameters
Returns
Type Parameters
DeSerializeHashtable(string, string)
Declaration
public static Hashtable DeSerializeHashtable(string xmlSource, string rootname)
Parameters
Returns
Deserialize(Stream, Type)
Declaration
public static object Deserialize(Stream objStream, Type type)
Parameters
Returns
GetAttributeValue(XPathNavigator, string)
Declaration
public static string GetAttributeValue(XPathNavigator nav, string attributeName)
Parameters
Returns
GetAttributeValueAsBoolean(XPathNavigator, string, bool)
Declaration
public static bool GetAttributeValueAsBoolean(XPathNavigator navigator, string attributeName, bool defaultValue)
Parameters
Returns
GetAttributeValueAsInteger(XPathNavigator, string, int)
Declaration
public static int GetAttributeValueAsInteger(XPathNavigator navigator, string attributeName, int defaultValue)
Parameters
Returns
GetAttributeValueAsLong(XPathNavigator, string, long)
Declaration
public static long GetAttributeValueAsLong(XPathNavigator navigator, string attributeName, long defaultValue)
Parameters
Returns
GetNodeValue(XPathNavigator, string)
Declaration
public static string GetNodeValue(XPathNavigator navigator, string path)
Parameters
Returns
GetNodeValue(XPathNavigator, string, string)
Declaration
public static string GetNodeValue(XPathNavigator navigator, string path, string defaultValue)
Parameters
Returns
GetNodeValue(XmlNode, string)
Declaration
public static string GetNodeValue(XmlNode objNode, string nodeName)
Parameters
Returns
GetNodeValue(XmlNode, string, string)
Declaration
public static string GetNodeValue(XmlNode objNode, string nodeName, string defaultValue)
Parameters
Returns
GetNodeValueBoolean(XPathNavigator, string)
Declaration
public static bool GetNodeValueBoolean(XPathNavigator navigator, string path)
Parameters
Returns
GetNodeValueBoolean(XPathNavigator, string, bool)
Declaration
public static bool GetNodeValueBoolean(XPathNavigator navigator, string path, bool defaultValue)
Parameters
Returns
GetNodeValueBoolean(XmlNode, string)
Declaration
public static bool GetNodeValueBoolean(XmlNode objNode, string nodeName)
Parameters
Returns
GetNodeValueBoolean(XmlNode, string, bool)
Declaration
public static bool GetNodeValueBoolean(XmlNode objNode, string nodeName, bool defaultValue)
Parameters
Returns
GetNodeValueDate(XPathNavigator, string, DateTime)
Declaration
public static DateTime GetNodeValueDate(XPathNavigator navigator, string path, DateTime defaultValue)
Parameters
Returns
GetNodeValueDate(XmlNode, string, DateTime)
Declaration
public static DateTime GetNodeValueDate(XmlNode objNode, string nodeName, DateTime defaultValue)
Parameters
Returns
GetNodeValueInt(XPathNavigator, string)
Declaration
public static int GetNodeValueInt(XPathNavigator navigator, string path)
Parameters
Returns
GetNodeValueInt(XPathNavigator, string, int)
Declaration
public static int GetNodeValueInt(XPathNavigator navigator, string path, int defaultValue)
Parameters
Returns
GetNodeValueInt(XmlNode, string)
Declaration
public static int GetNodeValueInt(XmlNode node, string nodeName)
Parameters
Returns
GetNodeValueInt(XmlNode, string, int)
Declaration
public static int GetNodeValueInt(XmlNode node, string nodeName, int defaultValue)
Parameters
Returns
GetNodeValueSingle(XPathNavigator, string)
Declaration
public static float GetNodeValueSingle(XPathNavigator navigator, string path)
Parameters
Returns
GetNodeValueSingle(XPathNavigator, string, float)
Declaration
public static float GetNodeValueSingle(XPathNavigator navigator, string path, float defaultValue)
Parameters
Returns
GetNodeValueSingle(XmlNode, string)
Declaration
public static float GetNodeValueSingle(XmlNode node, string nodeName)
Parameters
Returns
GetNodeValueSingle(XmlNode, string, float)
Declaration
public static float GetNodeValueSingle(XmlNode node, string nodeName, float defaultValue)
Parameters
Returns
GetXMLContent(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. Use XmlDocument.Load instead. Scheduled for removal in v11.0.0.")]
public static XmlDocument GetXMLContent(string contentUrl)
Parameters
Type |
Name |
Description |
string |
contentUrl |
|
Returns
Declaration
public static XmlWriterSettings GetXmlWriterSettings(ConformanceLevel conformance)
Parameters
Returns
RemoveInvalidXmlCharacters(string)
Declaration
public static string RemoveInvalidXmlCharacters(string content)
Parameters
Type |
Name |
Description |
string |
content |
|
Returns
Serialize(object)
Declaration
public static string Serialize(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
SerializeDictionary(IDictionary, string)
Declaration
public static string SerializeDictionary(IDictionary source, string rootName)
Parameters
Returns
SerializeHashtable(Hashtable, XmlDocument, XmlNode, string, string, string)
Declaration
public static void SerializeHashtable(Hashtable hashtable, XmlDocument xmlDocument, XmlNode rootNode, string elementName, string keyField, string valueField)
Parameters
UpdateAttribute(XmlNode, string, string)
Declaration
public static void UpdateAttribute(XmlNode node, string attName, string attValue)
Parameters
XMLEncode(string)
Declaration
public static string XMLEncode(string html)
Parameters
Type |
Name |
Description |
string |
html |
|
Returns
XPathLiteral(string)
Declaration
public static string XPathLiteral(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
Declaration
public static void XSLTransform(XmlDocument doc, ref StreamWriter writer, string xsltUrl)
Parameters
Extension Methods