te a StAXSource XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(args[0])); Source staxSource = new StAXSource(reader); // createa StreamResult Result streamResult = new StreamResult(System.out); // run the transform TransformerFactory.newInstance().newTransformer().transform(staxSource, streamResult);
@author Ryan.Shoemaker@Sun.COM
@version 1.0
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.