Xml

DictionaryToXml

Creates a XML from Dictionary entries and return the result Xml as string. Structure of the XML is '<root><></>... </root>'. The is the Entry Key and the Entry Value.

Syntax

DictionaryToXml ( Dictionary )

Parameters

Dictionary The Dictionary used to generate the Xml. Type: Dictionary<Any,Any>

Return Type

String

InstanceToXml

Creates a XML from an instance and return the result Xml as string. Structure of the XML is '<root><></>... </root>'. The is the Entry Key and the Entry Value.

Syntax

InstanceToXml ( Object )

Parameters

Object The Object instance used to generate the Xml. Type: Object

Return Type

String

XmlEscape

Escape an input string value to be usable for XML (e.g. < to &lt;).

Syntax

String XmlEscape(String Value)

Parameters

Value The input string value to escape. Type String

Return Type

String

XmlSelectNode

Selects a node via XPath and returns it as a String

Syntax

XmlSelectNodes ( Xml, XPath )

Parameters

Xml The XML document as a String. Type: String

XPath The XPath expression to use. Type: String

Return type

String

XmlSelectNodes

Selects a list of nodes via XPath and returns them as a list of String.

Syntax

XmlSelectNodes ( Xml , XPath )

Parameters

Xml The XML document as a String. Type: String

XPath The XPath expression to use. Type: String

Return Type

List<String>

XmlSelectNodeValue

Selects a value via XPath and returns as a String.

Syntax

XmlSelectNodeValue ( Xml , XPath )

Parameters

Xml The XML document as a String. Type: String

XPath The XPath expression to use. Type: String

Return Type

String

XmlSelectNodeValues

Selects a list via XPath and returns them as a list of Strings

Syntax

XmlSelectNodeValues ( Xml , XPath )

Parameters

Xml The XML document as a String. Type: String

XPath The XPath expression to use. Type: String

Return Type

List<String>

XmlSetNodeValue

Sets the Value of a node identified via XPath and returns the change XML as a String.

Syntax

XmlSetNodeValue ( Xml , Path , Value )

Parameters

Xml The XML document as a String. Type: String

Path The XPath expression to use. Type: String

Value The Value to set. Type: String

Return Type

String

XmlToDictionary

Creates a Dictionary from the given XML. Expected pattern of the XML is '<root><></>... </root>'. The is the Entry Key and the Entry Value of the Dictionary result.

Syntax

XmlToDictionary ( Xml )

Parameters

Xml The Xml used to generate the Dictionary. Type: String

Return Type

Dictionary<Any, Any>

Last updated