BeeSoft®
Since 1992
 

Content

 Welcome
 Products
       Abeona
       Gaia
             News
             Documentation
                   Introduction
                   Swing support
                   Server application
                   Validation
                   XML
                         DOM support
                         Reader
                         Writer
                   Logging
                   Utilities
                   Launcher
             License
             Download
       Hephaistos
       JavaGantt
 Services
       Promote your software
 Contact Us
 Links
      
  GaiaI®
© 2012 BeeSoft ®
 

DOM support

XML DOM support in Gaia is implemented in the static utility class eu.beesoft.gaia.xml.Xml.

There is number of parse() methods implemented in this class to parse given input (file, input stream, reader, ...) to the Document instance. You need no DocumentBuilderFactory etc. to parse XML (it is invoked on background).

Some methods look like DOM4J methods to make programming easier:

  • getElementIterator (Element) returns iterator of sub-elements
  • getAttributes (Element) returns Map
  • getAttributeValue (String, Element) returns attribute value from the element

and there is a number getAttributeValue() methods with default values.