OTX Reference  
OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlRootElement Class Reference

Returns the root element (root node) of an XML document. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlRootElement:
Inheritance graph

Public Attributes

XmlDocumentTerm document
 Cardinality [1]
The XmlDocument object to which the operation is applied. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Returns the root element (root node) of an XML document.

The GetXmlRootElement activity returns the root element (root node) of an XML document.

Syntax
XmlElementTerm = Xml.GetXmlRootElement(XmlDocumentTerm document);
XmlDocumentTerm document
Cardinality [1] The XmlDocument object to which the operation is applied.
Definition: XML.cs:1808
Examples
// Local Declarations
Xml.XmlElement XmlElement1;
Xml.XmlDocument XmlDocument1;
// Flow
XmlDocument1 = Xml.XmlLoadFromFile("XmlStorage/GetXmlElementsByXPath.xml", @Encoding:UTF-8);
XmlElement1 = Xml.GetXmlRootElement(XmlDocument1);

Member Data Documentation

◆ document

XmlDocumentTerm OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlRootElement.document

Cardinality [1]
The XmlDocument object to which the operation is applied.