Class XMLTool


  • public class XMLTool
    extends Object
    This class contains various tools to deal with XML documents
    • Constructor Detail

      • XMLTool

        public XMLTool()
    • Method Detail

      • createDocumentRoot

        public static Document createDocumentRoot()
        Creates a new Document
      • Dom2Stream

        public static void Dom2Stream​(Document doc,
                                      Writer writer)
        Coverts a DOM to an output stream
      • output

        public static String output​(Document doc)
        Print the document out.
      • showElement

        public static String showElement​(Element e)
        Display one element