/** Flush any existing text content to the document. Call this before appending any nodes. */ protected void flushTextBuffer() { if (builder.length() > 0) { appendChild(document.createTextNode(builder.toString())); builder.setLength(0); } }
/** Flush any existing text content to the document. Call this before appending any nodes. */ protected void flushTextBuffer() { if (builder.length() > 0) { appendChild(document.createTextNode(builder.toString())); builder.setLength(0); } }
/** Flush any existing text content to the document. Call this before appending any nodes. */ protected void flushTextBuffer() { if (builder.length() > 0) { appendChild(document.createTextNode(builder.toString())); builder.setLength(0); } }
appendChild(element); return element;
appendChild(element); return element;
appendChild(element); return element;
public void comment(XMLString text, Augmentations augs) throws XNIException { flushTextBuffer(); // Add comments as comment nodes - needed to support sanitization // of SocialMarkup-parsed content Node comment = getDocument().createComment(new String(text.ch, text.offset, text.length)); appendChild(comment); }
public void comment(XMLString text, Augmentations augs) throws XNIException { flushTextBuffer(); // Add comments as comment nodes - needed to support sanitization // of SocialMarkup-parsed content Node comment = getDocument().createComment(new String(text.ch, text.offset, text.length)); appendChild(comment); }
public void comment(XMLString text, Augmentations augs) throws XNIException { flushTextBuffer(); // Add comments as comment nodes - needed to support sanitization // of SocialMarkup-parsed content Node comment = getDocument().createComment(new String(text.ch, text.offset, text.length)); appendChild(comment); }