Loading TOC...

NodeBuilder.endElement

NodeBuilder.endElement() as This NodeBuilder object

Summary

Close out the current XML element node.

Usage Notes

Element nodes must be completed before calling toNode() on the builder; an error will be raised if they are not. An error will also be raised if endElement is called when there is no open element node.

Example

var builder = new NodeBuilder();
builder.startElement("p");
  builder.addText("Some content");
builder.endElement();
builder.toNode();

Example

var builder = new NodeBuilder();
builder.startElement("root")
  builder.addText("Some content");
builder.endElement();
builder.endElement();
builder.toNode();

==> Error

Comments

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