import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
public class Main {
public static void main(String[] args) throws Exception {
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder domBuilder = domFactory.newDocumentBuilder();
domBuilder.parse(args[0]);
System.out.println("'" + args[0] + "' is well-formed.");
}
}
sources68 the directory containing the programming examples, source code and programming guide online
Tuesday, 2 August 2011
Loading an XML Document using DOM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment