Extensions.Xml.SetXmlProcessingInstructions

From emotive
Jump to navigation Jump to search

Classification

Name SetXmlProcessingInstructions
Short Description Sets a list of new processing instruction elements above the XML root element.
Class Action
Extension OTX Xml extension
Group Xml related Actions
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

Xml.SetXmlProcessingInstructions(XmlDocumentTerm document, ListTerm processingInstructions);

Description

The SetXmlProcessingInstructions action is used to set a list of new processing instruction elements above the XML root element. Existing processing instructions will be overwritten.

Properties

Name Data Type Class Default Cardinality Description
Document XmlDocument Term - [1..1] The XmlDocument object, to which the operation is applied.
ProcessingInstructions List Term - [1..1] A list of string representations of the XML processing instructions. The strings provided are inserted directing between opening and closing processing instruction marks.

OTL 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'"});

See also

AddXmlChildElement
DeleteXmlAttribute
DeleteXmlChildElement
SetXmlComment
SetXmlElementAttribute
SetXmlElementAttributes
SetXmlElementText
ValidateXml
XmlSaveToFile