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

Returns a XmlDocument from a path. More...

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

Public Attributes

EncodingTerm fallbackEncoding
 Cardinality [0..1]
Optional encoding value of the ByteField (Default = "UTF-8"), if not encoding is described in XML prolog. If the encoding is defined in prolog this value should be ignored. If an invalid encoding (BIN, OCT, HEX) is specified, a XmlFormatException shall be thrown. More...
 
StringTerm path
 Cardinality [1]
The URI path to the file. The path parameter is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory. The format of the file or directory name (e.g. case -sensitive) depends on the operating system. 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 a XmlDocument from a path.

The XmlLoadFromFile activity returns a XmlDocument from a path.

Exceptions
Core.Exceptions.InvalidReferenceException
Exceptions.XmlFormatException
Syntax
XmlElementTerm = Xml.XmlLoadFromFile(StringTerm path, EncodingTerm fallbackEncoding = @Encoding:UTF-8);
StringTerm path
Cardinality [1] The URI path to the file. The path parameter is permitted to specify relative or abso...
Definition: XML.cs:1452
EncodingTerm fallbackEncoding
Cardinality [0..1] Optional encoding value of the ByteField (Default = "UTF-8"), if not encoding is d...
Definition: XML.cs:1462
Examples
// Local Declarations
Xml.XmlDocument XmlDocument1;
// Flow
XmlDocument1 = Xml.XmlLoadFromFile("XmlStorage/XmlLoadFromFile_TC01.xml", @Encoding:UTF-8);

Member Data Documentation

◆ fallbackEncoding

EncodingTerm OpenTestSystem.Otx.Extensions.XML.Terms.XmlLoadFromFile.fallbackEncoding

Cardinality [0..1]
Optional encoding value of the ByteField (Default = "UTF-8"), if not encoding is described in XML prolog. If the encoding is defined in prolog this value should be ignored. If an invalid encoding (BIN, OCT, HEX) is specified, a XmlFormatException shall be thrown.

◆ path

StringTerm OpenTestSystem.Otx.Extensions.XML.Terms.XmlLoadFromFile.path

Cardinality [1]
The URI path to the file. The path parameter is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory. The format of the file or directory name (e.g. case -sensitive) depends on the operating system.