Java XML Document Print printDocumentTree(Node el)

Here you can find the source of printDocumentTree(Node el)

Description

print Document Tree

License

Open Source License

Declaration

public static void printDocumentTree(Node el) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Node;

public class Main {
    public static void printDocumentTree(Node el) {
        System.out.println(el.toString());
        for (int i = 0; i < el.getChildNodes().getLength(); i++)
            printDocumentTree(el.getChildNodes().item(i));
    }//  ww w .jav a2  s.  c o  m
}

Related

  1. printDocument(File file)
  2. printDocument(final Document doc)
  3. printDocument(Node _docOrNode, OutputStream _outStream)
  4. printDocument(Node doc)
  5. printDocumentToStdout(final Document document)
  6. printDOM(File file, Document doc, String encoding)
  7. printElements(Document doc)
  8. printElements(Document dom)
  9. printPI(Document doc, PrintStream pstrm)