Click or drag to resize
XmlHelper Class
Class providing xml validation methods.
Inheritance Hierarchy
SystemObject
  CMS.HelpersXmlHelper

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public static class XmlHelper

The XmlHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetAttributeValue(XmlNode, String)
Returns value of the specified attribute from the given node representing a form field.
Public methodStatic memberGetAttributeValue(XmlNode, String, String)
Returns value of the specified attribute from the given node representing a form field.
Public methodStatic memberGetXmlAttributes
Returns attributes as an array (0 - attribute name, 1 - value).
Public methodStatic memberGetXmlAttributeValue
Returns string value of the specified xml attribute.
Public methodStatic memberReadContentAsBase64
Reads the current content from the XML reader as Base64 value.
Public methodStatic memberRemoveIllegalCharacters
Removes illegal characters from the given string (i.e. all non-printable characters except \t, \r, \n).
Public methodStatic memberReplaceNamespaceColon
Replaces the namespace colons (:) in the XML from the input XML reader with the dash (-) and writes the resulting XML using the output XML writer. E.g. atom:item element is translated to atom-item element.
Public methodStatic memberSetXmlNodeAttributes
Sets (updates or inserts) xml attributes to specified xml node.
Public methodStatic memberWriteDataTableToXml
Writes DataRow to Xml writer.
Public methodStatic memberWriteFileAsBase64
Writes the given physical file to the XML as Base64.
Public methodStatic memberXmlAttributeIsEmpty
Determines whether specified xml attribute is defined.
Public methodStatic memberXMLDecode
Converts a string that has been XML encoded into a decoded string.
Public methodStatic memberXMLEncode
XML encoding function.
Top
See Also