//Shows how to access the current node in a document builder.
Node curNode = builder.getCurrentNode();
Paragraph curParagraph = builder.getCurrentParagraph();
// Shows how to move a cursor position to a specified node.
builder.moveTo(doc.getFirstSection().getBody().getLastParagraph());
// Shows how to move a cursor position to the beginning or end of a document.
builder.moveToDocumentEnd();
builder.writeln("This is the end of the document.");