Recursively writes the XML data for the node tree starting at node . @param indent white space to indent child nodes @param tagBefore true if the last thing printed was a tag @param printWriter writer where child nodes are written @return true if the last thing printed was a tag
(final String indent, final boolean tagBefore, final PrintWriter printWriter)
| 828 | * @return true if the last thing printed was a tag |
| 829 | */ |
| 830 | protected boolean printChildrenAsXml(final String indent, final boolean tagBefore, final PrintWriter printWriter) { |
| 831 | DomNode child = getFirstChild(); |
| 832 | boolean tag = tagBefore; |
| 833 | while (child != null) { |
| 834 | tag = child.printXml(indent + " ", tag, printWriter); |
| 835 | child = child.getNextSibling(); |
| 836 | } |
| 837 | return tag; |
| 838 | } |
| 839 | |
| 840 | /** |
| 841 | * {@inheritDoc} |