FileDocCategorySizeDatePackage
PrintDOM.javaAPI DocExample682Sat Apr 23 22:35:42 BST 2005None

PrintDOM

public class PrintDOM extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		DocumentBuilder parser = 
			DocumentBuilderFactory.newInstance().newDocumentBuilder();
		Document document = parser.parse( new InputSource("zooinventory.xml") );
		Transformer transformer = 
			TransformerFactory.newInstance().newTransformer();
		Source source = new DOMSource( document );
		Result output = new StreamResult( System.out );
		transformer.transform( source, output );