Click or drag to resize
XmlData Class
XML data container.
Inheritance Hierarchy

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
[SerializableAttribute]
public class XmlData : ISerializable, IDataContainer, 
	ISimpleDataContainer

The XmlData type exposes the following members.

Constructors
  NameDescription
Public methodXmlData
Constructor - creates empty XmlData object.
Public methodXmlData(String)
Constructor with root element name specification.
Public methodXmlData(SerializationInfo, StreamingContext)
Constructor for deserialization.
Top
Fields
  NameDescription
Protected fieldmData
Collection of the data contents.
Top
Properties
  NameDescription
Public propertyAllowMacros
Indicates if macro values are allowed
Public propertyColumnNames
Column names.
Public propertyExcludedColumns
List of excluded column name prefixes (delimited by ';'). Columns starting with these won't be loaded to collection.
Public propertyItem
Gets or sets the value of the column.
Public propertyMacroTable
Macro table
Public propertyXmlRootName
Gets name of xml root element.
Top
Methods
  NameDescription
Public methodClear
Clears the custom data.
Public methodClone
Returns the cloned object.
Public methodContainsColumn
Returns true if the object contains specified column.
Public methodConvertToHashtable
Converts XML data to Hashtable.
Public methodGetData
Returns the XML code of the data.
Public methodGetObjectData
Gets object data.
Public methodGetValue
Returns value of column.
Public methodGetXmlElement
Gets the XML element for the data
Public methodLoadData
Loads the XML to the content table.
Public methodLoadFromXmlElement
Loads the data from the given XML element
Public methodRemove
Removes element with specified key from collection
Public methodSetValue
Sets value of column.
Public methodToString
Returns xml as a string.
(Overrides ObjectToString.)
Public methodTryGetValue
Returns value of column.
Top
Extension Methods
  NameDescription
Public Extension MethodCheckRequiredColumns
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.)
Public Extension MethodToJSON
Returns JSON representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Public Extension MethodToXML(XmlWriter, Boolean)Overloaded.
Writes XML representation of current instance of IDataContainer to provided XmlWriter.
(Defined by DataExtensions.)
Public Extension MethodToXML(String, Boolean)Overloaded.
Returns XML representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Public Extension MethodToXML(XmlWriter, ListString, Boolean)Overloaded.
Writes XML representation of selected columns of current instance of IDataContainer to provided XmlWriter.
(Defined by DataExtensions.)
Top
See Also