C# Class Tridion.Extensions.DynamicDelivery.Templates.TridionXml

Inheritance: System.Xml.XmlDocument
Mostra file Open project: rainmaker2k/TridionMVCDotNet Class Usage Examples

Public Methods

Method Description
AddContentNamespace ( ) : void

Adds (if it exists) the Tridion Content namespace to the namespacemanager, using the Prefix "Content"

AddMetadataNamespace ( ) : void

Adds (if it exists) the Tridion Metadata namespace to the namespacemanager, using the Prefix "Metadata"

GetAttributeValue ( XmlNode node, string attr ) : string

Gets the attribute value.

GetContentAttributeValue ( string rootName, string fieldName, string attr ) : string

Gets the attribute value.

GetContentNode ( string rootName, string fieldName, bool deep ) : XmlNode

Gets the node.

GetContentNodeValue ( string rootName, string fieldName, bool deep ) : string

Gets the content node value.

GetContentNodes ( string rootName, string fieldName, bool deep ) : XmlNodeList

Gets the nodes.

GetMetadataAttributeValue ( string fieldName, string attr ) : string

Gets the metadata attribute value.

GetMetadataNode ( string fieldName, bool deep ) : XmlNode

Gets the metadata node.

GetMetadataNodeValue ( string fieldName, bool deep ) : string

Gets the metadata node value.

GetMetadataNodes ( string fieldName, bool deep ) : XmlNodeList

Gets the metadata nodes.

GetNode ( XmlNode node, string fieldName ) : XmlNode

Gets the node.

GetNodeValue ( XmlNode node ) : string

Gets the node value.

GetNodeValue ( XmlNode node, string fieldName ) : string

Gets the node value.

GetNodes ( XmlNode node, string fieldName ) : XmlNodeList

Gets the nodes.

GetPageMetadataNodeValue ( string fieldName, bool deep ) : string

Gets the metadata node value.

GetPublicationMetadataNodeValue ( string fieldName, bool deep ) : string

Gets the metadata node value.

GetRootElement ( ) : XmlNode

Gets the root element.

GetRootElementName ( ) : string

Gets the name of the root element.

LoadXml ( string xml ) : void

Loads the XML document from the specified string.

TridionXml ( ) : System

Initializes a new instance of the TridionXml class.

TridionXml ( XmlDocument source ) : System

Initializes a new instance of the TridionXml class using source as the starting point.

TridionXml ( XmlElement source ) : System

Private Methods

Method Description
AddNamespace ( string contentOrMetadata ) : void

Queries the base XML and adds Content or Metadata namespaces to the Namespace manager

GetId ( ) : string

Reads an Item's ID

Method Details

AddContentNamespace() public method

Adds (if it exists) the Tridion Content namespace to the namespacemanager, using the Prefix "Content"
public AddContentNamespace ( ) : void
return void

AddMetadataNamespace() public method

Adds (if it exists) the Tridion Metadata namespace to the namespacemanager, using the Prefix "Metadata"
public AddMetadataNamespace ( ) : void
return void

GetAttributeValue() public method

Gets the attribute value.
public GetAttributeValue ( XmlNode node, string attr ) : string
node System.Xml.XmlNode The node.
attr string The attr.
return string

GetContentAttributeValue() public method

Gets the attribute value.
public GetContentAttributeValue ( string rootName, string fieldName, string attr ) : string
rootName string Name of the root.
fieldName string Name of the field.
attr string The attr.
return string

GetContentNode() public method

Gets the node.
public GetContentNode ( string rootName, string fieldName, bool deep ) : XmlNode
rootName string Name of the root.
fieldName string Name of the field.
deep bool if set to true [deep].
return System.Xml.XmlNode

GetContentNodeValue() public method

Gets the content node value.
public GetContentNodeValue ( string rootName, string fieldName, bool deep ) : string
rootName string Name of the content root.
fieldName string Name of the field.
deep bool if set to true [deep].
return string

GetContentNodes() public method

Gets the nodes.
public GetContentNodes ( string rootName, string fieldName, bool deep ) : XmlNodeList
rootName string Name of the root.
fieldName string Name of the field.
deep bool if set to true [deep].
return System.Xml.XmlNodeList

GetMetadataAttributeValue() public method

Gets the metadata attribute value.
public GetMetadataAttributeValue ( string fieldName, string attr ) : string
fieldName string Name of the field.
attr string The attr.
return string

GetMetadataNode() public method

Gets the metadata node.
public GetMetadataNode ( string fieldName, bool deep ) : XmlNode
fieldName string Name of the field.
deep bool if set to true [deep].
return System.Xml.XmlNode

GetMetadataNodeValue() public method

Gets the metadata node value.
public GetMetadataNodeValue ( string fieldName, bool deep ) : string
fieldName string Name of the field.
deep bool if set to true [deep].
return string

GetMetadataNodes() public method

Gets the metadata nodes.
public GetMetadataNodes ( string fieldName, bool deep ) : XmlNodeList
fieldName string Name of the field.
deep bool if set to true [deep].
return System.Xml.XmlNodeList

GetNode() public method

Gets the node.
public GetNode ( XmlNode node, string fieldName ) : XmlNode
node System.Xml.XmlNode The node.
fieldName string Name of the field.
return System.Xml.XmlNode

GetNodeValue() public method

Gets the node value.
public GetNodeValue ( XmlNode node ) : string
node System.Xml.XmlNode The node.
return string

GetNodeValue() public method

Gets the node value.
public GetNodeValue ( XmlNode node, string fieldName ) : string
node System.Xml.XmlNode The node.
fieldName string Name of the field.
return string

GetNodes() public method

Gets the nodes.
public GetNodes ( XmlNode node, string fieldName ) : XmlNodeList
node System.Xml.XmlNode The node.
fieldName string Name of the field.
return System.Xml.XmlNodeList

GetPageMetadataNodeValue() public method

Gets the metadata node value.
public GetPageMetadataNodeValue ( string fieldName, bool deep ) : string
fieldName string Name of the field.
deep bool if set to true [deep].
return string

GetPublicationMetadataNodeValue() public method

Gets the metadata node value.
public GetPublicationMetadataNodeValue ( string fieldName, bool deep ) : string
fieldName string Name of the field.
deep bool if set to true [deep].
return string

GetRootElement() public method

Gets the root element.
public GetRootElement ( ) : XmlNode
return System.Xml.XmlNode

GetRootElementName() public method

Gets the name of the root element.
public GetRootElementName ( ) : string
return string

LoadXml() public method

Loads the XML document from the specified string.
There is a load or parse error in the XML. In this case, the document remains empty.
public LoadXml ( string xml ) : void
xml string String containing the XML document to load.
return void

TridionXml() public method

Initializes a new instance of the TridionXml class.
public TridionXml ( ) : System
return System

TridionXml() public method

Initializes a new instance of the TridionXml class using source as the starting point.
public TridionXml ( XmlDocument source ) : System
source System.Xml.XmlDocument The XmlDocument to start from.
return System

TridionXml() public method

public TridionXml ( XmlElement source ) : System
source System.Xml.XmlElement
return System