Example #1
0
  public void startNode(String name) {
    startPointer = writer.getPointer();
    quickNodeValue = false;
    lastTagHadAttributes = false;
    tagIsEmpty = false;
    finishTag();
    if (depth != 0) writer.write(LF);
    writer.write(
        WikiTableDriver.DELIM
            + WikiTableDriver.QUOTES
            + WikiTableDriver.START_NODE
            + WikiTableDriver.QUOTES
            + WikiTableDriver.DELIM);

    if (this.useLineSeparateBetweenTags) {
      writer.write(LF + WikiTableDriver.DELIM);
    }

    writer.write(name + WikiTableDriver.DELIM);
    elementStack.push(name);
    tagInProgress = true;
    depth++;
    readyForNewLine = true;
    tagIsEmpty = true;
  }
 /**
  * Constructs an AbstractDocumentWriter.
  *
  * @param container the top level container for the nodes to create (may be <code>null</code>)
  * @param replacer the object that creates XML-friendly names
  * @since 1.2.1
  */
 public AbstractDocumentWriter(final Object container, final XmlFriendlyReplacer replacer) {
   super(replacer);
   if (container != null) {
     nodeStack.push(container);
     result.add(container);
   }
 }
 public final void startNode(final String name) {
   final Object node = createNode(name);
   nodeStack.push(node);
 }