C# Class Universe.Framework.Utilities.UniverseXmlDocument

Summary description for NSXML.
Inheritance: System.Xml.XmlDocument
Mostra file Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Methods

Method Description
AddAttribute ( XmlNode node, string attributeName, string attributeValue ) : void

Addes an attribute and attribute value to a node passed in

AddAttribute ( string xPath, string attributeName, string attributeValue ) : void

Addes an attribute and attribute value to a node that the xPath resolves to

AddNode ( XmlNode selectedNode, XmlNode nodeToAdd ) : XmlNode

Adds a node to root

AddNode ( string nodeName, string nodeValue ) : XmlNode

Adds a node to root

AddNode ( string xPath, string nodeName, string nodeValue ) : XmlNode

Adds a node to root named by xPath

AddNode ( string nodeName, string nodeValue, string attributeName, string attributeValue ) : XmlNode

Adds a node with an attribute and attribute value to root

AddNode ( string xPath, string nodeName, string nodeValue, string attributeName, string attributeValue ) : XmlNode

Adds a node to root named by xPath

AddRootElement ( string nodeName ) : XmlElement

Adds the nodeName as the root element

AddXMLDoc ( UniverseXmlDocument XmlDoc, string xPathFrom, string xPathTo ) : UniverseXmlDocument

Combines to xml documents into one.

ConvertDateXML ( string xmlDate ) : string

Converts the common xml date to normal date

CreateNode ( string nodeName, int nodeValue ) : XmlNode

Creates and returns an XmlNode. This does not place it in the DOM.

CreateNode ( string nodeName, int nodeValue, string attributeName, int attributeValue ) : XmlNode

Creates and returns an XmlNode with an attribute and attribute value. This does not place it in the DOM.

CreateNode ( string nodeName, int nodeValue, string attributeName, string attributeValue ) : XmlNode

Creates and returns an XmlNode with an attribute and attribute value. This does not place it in the DOM.

CreateNode ( string nodeName, string nodeValue ) : XmlNode

Creates and returns an XmlNode. This does not place it in the DOM.

CreateNode ( string nodeName, string nodeValue, string attributeName, int attributeValue ) : XmlNode

Creates and returns an XmlNode with an attribute and attribute value. This does not place it in the DOM.

CreateNode ( string nodeName, string nodeValue, string attributeName, string attributeValue ) : XmlNode

Creates and returns an XmlNode with an attribute and attribute value. This does not place it in the DOM.

DeleteNode ( XmlNode selectedNode ) : bool

Delete node

DeleteNode ( string xPath ) : bool

Delete node

DeleteNodes ( XmlNodeList selectedNodes ) : bool

Delete multiple nodes

DeleteNodes ( string xPath ) : bool

Delete multiple nodes

EditAttribute ( string xPath, string attributeName, string attributeValue ) : XmlNode

Edit the value of an attribute

EditNode ( string xPath, int theValue ) : XmlNode

Edit the value of a node

EditNode ( string xPath, int theValue, string attributeName, int attributeValue ) : XmlNode

Edit the value of a node

EditNode ( string xPath, int theValue, string attributeName, string attributeValue ) : XmlNode

Edit the value of a node

EditNode ( string xPath, string theValue ) : XmlNode

Edit the value of a node

EditNode ( string xPath, string theValue, string attributeName, int attributeValue ) : XmlNode

Edit the value of a node

EditNode ( string xPath, string theValue, string attributeName, string attributeValue ) : XmlNode

Edit the value of a node

GetAttribute ( string xPath, string attributeName ) : string

Edit the value of an attribute

GetXmlnodeValue ( string xPath ) : string

Return the value of a node, if the node does not exsist then string.Empty is returned

IsDate ( string value ) : bool
NewXmlDocumentWithRoot ( string rootName ) : UniverseXmlDocument

Creates a new UniverseXmlDocument with the specified rootName

UniverseXmlDocument ( ) : System

Default Constructor

UniverseXmlDocument ( string xml ) : System

Creates a UniverseXmlDocument and loads it with the xml

hasChildNodes2 ( XmlNode selectedNode ) : bool

Private Methods

Method Description
IsNull ( string val ) : bool

Method Details

AddAttribute() public method

Addes an attribute and attribute value to a node passed in
public AddAttribute ( XmlNode node, string attributeName, string attributeValue ) : void
node System.Xml.XmlNode Node to add the attribute and attribute value to
attributeName string Name of the attribute to add
attributeValue string Value of the attribute being added
return void

AddAttribute() public method

Addes an attribute and attribute value to a node that the xPath resolves to
public AddAttribute ( string xPath, string attributeName, string attributeValue ) : void
xPath string XPath of the node to add the attribute and attribute value to
attributeName string Name of the attribute to add
attributeValue string Value of the attribute being added
return void

AddNode() public method

Adds a node to root
public AddNode ( XmlNode selectedNode, XmlNode nodeToAdd ) : XmlNode
selectedNode System.Xml.XmlNode XmlNode where to add
nodeToAdd System.Xml.XmlNode XmlNode to add
return System.Xml.XmlNode

AddNode() public method

Adds a node to root
public AddNode ( string nodeName, string nodeValue ) : XmlNode
nodeName string Name of the node to add
nodeValue string Value of node to add
return System.Xml.XmlNode

AddNode() public method

Adds a node to root named by xPath
public AddNode ( string xPath, string nodeName, string nodeValue ) : XmlNode
xPath string
nodeName string
nodeValue string
return System.Xml.XmlNode

AddNode() public method

Adds a node with an attribute and attribute value to root
public AddNode ( string nodeName, string nodeValue, string attributeName, string attributeValue ) : XmlNode
nodeName string
nodeValue string
attributeName string
attributeValue string
return System.Xml.XmlNode

AddNode() public method

Adds a node to root named by xPath
public AddNode ( string xPath, string nodeName, string nodeValue, string attributeName, string attributeValue ) : XmlNode
xPath string
nodeName string
nodeValue string
attributeName string
attributeValue string
return System.Xml.XmlNode

AddRootElement() public method

Adds the nodeName as the root element
public AddRootElement ( string nodeName ) : XmlElement
nodeName string
return System.Xml.XmlElement

AddXMLDoc() public method

Combines to xml documents into one.
public AddXMLDoc ( UniverseXmlDocument XmlDoc, string xPathFrom, string xPathTo ) : UniverseXmlDocument
XmlDoc UniverseXmlDocument XmlDoc you want to add to this Xmldoc
xPathFrom string XPath to the node or nodes you want to move
xPathTo string XPath to the node that you want to place the xml
return UniverseXmlDocument

ConvertDateXML() public method

Converts the common xml date to normal date
public ConvertDateXML ( string xmlDate ) : string
xmlDate string
return string

CreateNode() public method

Creates and returns an XmlNode. This does not place it in the DOM.
public CreateNode ( string nodeName, int nodeValue ) : XmlNode
nodeName string Name of the node to create
nodeValue int Value of the node to create
return System.Xml.XmlNode

CreateNode() public method

Creates and returns an XmlNode with an attribute and attribute value. This does not place it in the DOM.
public CreateNode ( string nodeName, int nodeValue, string attributeName, int attributeValue ) : XmlNode
nodeName string Name of the node to create
nodeValue int Value of the node to create
attributeName string Attribute name in the node to create
attributeValue int Attribute value in the node to create
return System.Xml.XmlNode

CreateNode() public method

Creates and returns an XmlNode with an attribute and attribute value. This does not place it in the DOM.
public CreateNode ( string nodeName, int nodeValue, string attributeName, string attributeValue ) : XmlNode
nodeName string Name of the node to create
nodeValue int Value of the node to create
attributeName string Attribute name in the node to create
attributeValue string Attribute value in the node to create
return System.Xml.XmlNode

CreateNode() public method

Creates and returns an XmlNode. This does not place it in the DOM.
public CreateNode ( string nodeName, string nodeValue ) : XmlNode
nodeName string Name of the node to create
nodeValue string Value of the node to create
return System.Xml.XmlNode

CreateNode() public method

Creates and returns an XmlNode with an attribute and attribute value. This does not place it in the DOM.
public CreateNode ( string nodeName, string nodeValue, string attributeName, int attributeValue ) : XmlNode
nodeName string Name of the node to create
nodeValue string Value of the node to create
attributeName string Attribute name in the node to create
attributeValue int Attribute value in the node to create
return System.Xml.XmlNode

CreateNode() public method

Creates and returns an XmlNode with an attribute and attribute value. This does not place it in the DOM.
public CreateNode ( string nodeName, string nodeValue, string attributeName, string attributeValue ) : XmlNode
nodeName string Name of the node to create
nodeValue string Value of the node to create
attributeName string Attribute name in the node to create
attributeValue string Attribute value in the node to create
return System.Xml.XmlNode

DeleteNode() public method

Delete node
public DeleteNode ( XmlNode selectedNode ) : bool
selectedNode System.Xml.XmlNode Node to delete from document
return bool

DeleteNode() public method

Delete node
public DeleteNode ( string xPath ) : bool
xPath string XPath to the node to delete
return bool

DeleteNodes() public method

Delete multiple nodes
public DeleteNodes ( XmlNodeList selectedNodes ) : bool
selectedNodes System.Xml.XmlNodeList Nodes to be deleted
return bool

DeleteNodes() public method

Delete multiple nodes
public DeleteNodes ( string xPath ) : bool
xPath string xPath to the nodes to be deleted
return bool

EditAttribute() public method

Edit the value of an attribute
public EditAttribute ( string xPath, string attributeName, string attributeValue ) : XmlNode
xPath string XPath to the node with the attribute to edit
attributeName string Name of the attribute to edit
attributeValue string New value of the attribute
return System.Xml.XmlNode

EditNode() public method

Edit the value of a node
public EditNode ( string xPath, int theValue ) : XmlNode
xPath string XPath to the node
theValue int New Value of the node
return System.Xml.XmlNode

EditNode() public method

Edit the value of a node
public EditNode ( string xPath, int theValue, string attributeName, int attributeValue ) : XmlNode
xPath string XPath to the node
theValue int New Value of the node
attributeName string Attribute name in the node to edit
attributeValue int Attribute value in the node to edit
return System.Xml.XmlNode

EditNode() public method

Edit the value of a node
public EditNode ( string xPath, int theValue, string attributeName, string attributeValue ) : XmlNode
xPath string XPath to the node
theValue int New Value of the node
attributeName string Attribute name in the node to edit
attributeValue string Attribute value in the node to edit
return System.Xml.XmlNode

EditNode() public method

Edit the value of a node
public EditNode ( string xPath, string theValue ) : XmlNode
xPath string XPath to the node
theValue string New Value of the node
return System.Xml.XmlNode

EditNode() public method

Edit the value of a node
public EditNode ( string xPath, string theValue, string attributeName, int attributeValue ) : XmlNode
xPath string XPath to the node
theValue string New Value of the node
attributeName string Attribute name in the node to edit
attributeValue int Attribute value in the node to edit
return System.Xml.XmlNode

EditNode() public method

Edit the value of a node
public EditNode ( string xPath, string theValue, string attributeName, string attributeValue ) : XmlNode
xPath string XPath to the node
theValue string New Value of the node
attributeName string Attribute name in the node to edit
attributeValue string Attribute value in the node to edit
return System.Xml.XmlNode

GetAttribute() public method

Edit the value of an attribute
public GetAttribute ( string xPath, string attributeName ) : string
xPath string XPath to the node with the attribute to edit
attributeName string Name of the attribute to edit
return string

GetXmlnodeValue() public method

Return the value of a node, if the node does not exsist then string.Empty is returned
public GetXmlnodeValue ( string xPath ) : string
xPath string XPath to the node you want the value of
return string

IsDate() public static method

public static IsDate ( string value ) : bool
value string
return bool

NewXmlDocumentWithRoot() public static method

Creates a new UniverseXmlDocument with the specified rootName
public static NewXmlDocumentWithRoot ( string rootName ) : UniverseXmlDocument
rootName string
return UniverseXmlDocument

UniverseXmlDocument() public method

Default Constructor
public UniverseXmlDocument ( ) : System
return System

UniverseXmlDocument() public method

Creates a UniverseXmlDocument and loads it with the xml
public UniverseXmlDocument ( string xml ) : System
xml string
return System

hasChildNodes2() public method

public hasChildNodes2 ( XmlNode selectedNode ) : bool
selectedNode System.Xml.XmlNode
return bool