java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.DOMEcho

public class DOMEcho
extends Object
This is a program to echo a DOM tree using DOM Level 2 interfaces. Use JAXP to load an XML file and create a DOM tree. DOM currently does not provide a method to do this. (This is planned for Level 3.) See the method "main" for the three basic steps. Once the application obtains a DOM Document tree, it dumps out the nodes in the tree and associated node attributes for each node. This program also shows how to validate a document along with using an ErrorHandler to capture validation errors. Note: Program flags may be used to create non-conformant but possibly useful DOM trees. In some cases, particularly with element content whitespace, applications may not want to rely on JAXP to filter out these nodes but may want to skip the nodes themselves so the application will be more robust. Update 2002-04-18: Added code that shows how to use JAXP 1.2 features to support W3C XML Schema validation. See the JAXP 1.2 maintenance review specification for more information on these features.
Author:
Edwin Goei