Loading TOC...

NodeBuilder.addProcessingInstruction

NodeBuilder.addProcessingInstruction(
   $target as String,
   $text as String
) as This NodeBuilder object

Summary

Add an XML processing instruction node to the node tree the builder is building.

Parameters
$target The processing instruction target.
$text The contents of the processing instruction.

Usage Notes

Processing instruction nodes may only be added to XML documents.

Example

var builder = new NodeBuilder();
builder.startDocument();
  builder.addProcessingInstruction("xml-stylesheet","href='mystyles.css' type='text/css'");
  builder.addElement("doc","My simple document with a stylesheet");
builder.endDocument();
builder.toNode();

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy