Class DomUtil


  • public class DomUtil
    extends java.lang.Object
    Utility class for working with XML document object models.
    Since:
    1.1
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.w3c.dom.Document newDocument()
      Creates a new XML document object model.
      static void print​(java.lang.String title, org.w3c.dom.Node document)
      Prints a DOM to standard out (for testing only).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newDocument

        public static org.w3c.dom.Document newDocument()
        Creates a new XML document object model.
        Returns:
        the new DOM
      • print

        public static void print​(java.lang.String title,
                                 org.w3c.dom.Node document)
        Prints a DOM to standard out (for testing only).
        Parameters:
        title - the name of the DOM
        document - the DOM to print