Loading TOC...

NodeBuilder.toNode

NodeBuilder.toNode() as Node

Summary

Return the node tree that has been built.

Usage Notes

It is an error to call toNode on an incomplete node tree, that is, one with open XML element or document nodes. It is also an error to call this method more than once.

Example

var builder = new NodeBuilder();
builder.startElement("ex:example","http://example.com/ns1");
  builder.addText("Some element content here");
builder.endElement();
builder.toNode();

Example

var builder = new NodeBuilder();
builder.startElement("ex:example","http://example.com/ns1");
  builder.addText("Some element content here");
builder.toNode();

==> Error

Comments

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