OTX Reference  
OpenTestSystem.Otx.Extensions.XML.Actions.SetXmlProcessingInstructions Class Reference

Sets a list of new processing instruction elements above the XML root element. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.XML.Actions.SetXmlProcessingInstructions:
Inheritance graph

Public Attributes

XmlDocumentTerm document
 The XmlDocument object to which the operation is applied. More...
 
ListTerm processingInstructions
 List of string representation of the xml processing instructions. These are all characters between the opening and closing tag. Sample: "xml-stylesheet type='text/xsl' href='myfile.xsl'" in "<?xml-stylesheet type='text/xsl' href='myfile.xsl'?>". More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Sets a list of new processing instruction elements above the XML root element.

The SetXmlProcessingInstructions activity sets a list of new processing instruction elements above the XML root element. Existing processing instructions will be overwritten.

Syntax
Xml.SetXmlProcessingInstructions(XmlDocumentTerm document, ListTerm processingInstructions);
XmlDocumentTerm document
The XmlDocument object to which the operation is applied.
Definition: XML.cs:518
ListTerm processingInstructions
List of string representation of the xml processing instructions. These are all characters between th...
Definition: XML.cs:528
Examples
// Local Declarations
Xml.XmlElement XmlElement1;
Xml.XmlDocument XmlDocument1;
// Flow
XmlElement1 = Xml.CreateXmlElement("root");
XmlDocument1 = Xml.CreateXmlDocument(XmlElement1, "1.0", @Encoding:UTF-8, false);
Xml.SetXmlProcessingInstructions(XmlDocument1, {"xml-stylesheet type='text/xsl' href='myfile.xsl'"});

Member Data Documentation

◆ document

XmlDocumentTerm OpenTestSystem.Otx.Extensions.XML.Actions.SetXmlProcessingInstructions.document

The XmlDocument object to which the operation is applied.

◆ processingInstructions

ListTerm OpenTestSystem.Otx.Extensions.XML.Actions.SetXmlProcessingInstructions.processingInstructions

List of string representation of the xml processing instructions. These are all characters between the opening and closing tag. Sample: "xml-stylesheet type='text/xsl' href='myfile.xsl'" in "<?xml-stylesheet type='text/xsl' href='myfile.xsl'?>".