matlab.io.xml.dom.ProcessingInstruction 类
包: matlab.io.xml.dom
说明
使用 matlab.io.xml.dom.ProcessingInstruction
类的对象向处理嵌入有处理指令的 XML 文档的应用程序提供数据。例如,您可以使用处理指令来指定用于转换 XML 文档的样式表的位置。
注意
ProcessingInstruction
对象会从 matlab.io.xml.dom.Node
类继承一些用于 ProcessingInstruction
对象时无效或导致错误的方法和属性。请仅使用本页公开的方法和属性。
matlab.io.xml.dom.ProcessingInstruction
类是 handle
类。
创建对象
使用 matlab.io.xml.dom.Document
对象的 createProcessingInstruction
方法创建 matlab.io.xml.dom.ProcessingInstruction
对象。在方法调用中指定目标和数据。例如:
pi = createProcessingInstruction(doc,'stylesheet','href = "myStylesheet.xsl"');
属性
方法
示例
版本历史记录
在 R2021a 中推出