Xml.Win.msxmldom.TMSDOMProcessingInstruction

From RAD Studio API Documentation
Jump to: navigation, search


Xml.Win.msxmldom.TMSDOMNodeXml.Win.msxmldom.TMSDOMInterfaceSystem.TInterfacedObjectSystem.TObjectTMSDOMProcessingInstruction

Delphi

TMSDOMProcessingInstruction = class(TMSDOMNode, IDOMProcessingInstruction)

C++

class PASCALIMPLEMENTATION TMSDOMProcessingInstruction : public TMSDOMNode

Properties

Type Visibility Source Unit Parent
class public
Xml.Win.msxmldom.pas
Xml.Win.msxmldom.hpp
Xml.Win.msxmldom Xml.Win.msxmldom

Description

Represents a processing instruction in a DOM document. A processing instruction is an instruction for applications, for example:

<r><?target data?></r>

A processing instruction has a target name and a value. The target name indicates the targeted application. The following code creates a processing instruction:

// ProcInstr is a TMSDOMProcessingInstruction
ProcInstr := TMSDOMProcessingInstruction.Create(Doc.MSDocument.createProcessingInstruction('target', 'data'));
Writeln(ProcInstr.MSProcessingInstruction.target); { target }
Writeln(ProcInstr.MSProcessingInstruction.data); { data }

Note: To retrieve an IXMLDOMProcessingInstruction reference from a TMSDOMProcessingInstruction object, you can use the MSProcessingInstruction property.

See Also