FileDocCategorySizeDatePackage
PrintXInclude.javaAPI DocExample836Sat Apr 23 22:35:34 BST 2005None

PrintXInclude

public class PrintXInclude extends Object

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

		DocumentBuilderFactory factory = 
			DocumentBuilderFactory.newInstance();
		factory.setNamespaceAware( true );
		factory.setXIncludeAware( true );
		DocumentBuilder parser = factory.newDocumentBuilder();
		System.out.println( "aware: "+parser.isXIncludeAware() );
		Document document = parser.parse( args[0] );
		Transformer transformer = 
			TransformerFactory.newInstance().newTransformer();
		Source source = new DOMSource( document );
		Result output = new StreamResult( System.out );
		transformer.transform( source, output );