Package: matlab.io.xml.dom
XML processing instruction
Use an object of the matlab.io.xml.dom.ProcessingInstruction class to
provide data to an application that processes the XML document that embeds the processing
instruction. For example, you can use a processing instruction to specify the location of the
stylesheet used to transform the XML document.
Note
A ProcessingInstruction object inherits methods and properties from the
matlab.io.xml.dom.Node class that are ineffective or cause errors when used
with a ProcessingInstruction object. Use only the methods and properties that
are documented on this page.
The matlab.io.xml.dom.ProcessingInstruction class is a handle class.
ConstructOnLoad | true |
HandleCompatible | false |
For information on class attributes, see Class Attributes.
Use the createProcessingInstruction method of a matlab.io.xml.dom.Document object to create a
matlab.io.xml.dom.ProcessingInstruction object. Specify the target and data
in the method call. For
example:
pi = createProcessingInstruction(doc,'stylesheet','href = "myStylesheet.xsl"');