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

Inheritance: System.Xml.XmlDocument
Afficher le fichier Open project: rainmaker2k/TridionMVCDotNet Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

AddMetadataNamespace() public méthode

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

GetAttributeValue() public méthode

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

GetContentAttributeValue() public méthode

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.
Résultat string

GetContentNode() public méthode

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].
Résultat System.Xml.XmlNode

GetContentNodeValue() public méthode

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].
Résultat string

GetContentNodes() public méthode

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].
Résultat System.Xml.XmlNodeList

GetMetadataAttributeValue() public méthode

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

GetMetadataNode() public méthode

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

GetMetadataNodeValue() public méthode

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].
Résultat string

GetMetadataNodes() public méthode

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

GetNode() public méthode

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

GetNodeValue() public méthode

Gets the node value.
public GetNodeValue ( XmlNode node ) : string
node System.Xml.XmlNode The node.
Résultat string

GetNodeValue() public méthode

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

GetNodes() public méthode

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

GetPageMetadataNodeValue() public méthode

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].
Résultat string

GetPublicationMetadataNodeValue() public méthode

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].
Résultat string

GetRootElement() public méthode

Gets the root element.
public GetRootElement ( ) : XmlNode
Résultat System.Xml.XmlNode

GetRootElementName() public méthode

Gets the name of the root element.
public GetRootElementName ( ) : string
Résultat string

LoadXml() public méthode

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.
Résultat void

TridionXml() public méthode

Initializes a new instance of the TridionXml class.
public TridionXml ( ) : System
Résultat System

TridionXml() public méthode

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.
Résultat System

TridionXml() public méthode

public TridionXml ( XmlElement source ) : System
source System.Xml.XmlElement
Résultat System