Results 1 to 1 of 1
Thread: A simple DOM reader
-
A simple DOM reader
A simple DOM reader is presented below:
Java Code:DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setValidating( true ); factory.setNamespaceAware( true ); try { // get a builder to create a DOM document DocumentBuilder builder = factory.newDocumentBuilder(); // parse the damned document Document d = builder.parse( "files\\myfile.xml" ); System.out.println( "the document: " + d ); } catch( Exception e ) { e.printStackTrace(); }
Similar Threads
-
simple GUI
By dim_ath in forum New To JavaReplies: 3Last Post: 01-07-2008, 03:00 PM -
Probably a really simple question...
By ibanez270dx in forum New To JavaReplies: 0Last Post: 11-16-2007, 01:27 AM -
Seems so simple yet I can't figure it out!
By adamhaviland in forum New To JavaReplies: 1Last Post: 11-03-2007, 06:26 PM -
simple code
By elizabeth in forum New To JavaReplies: 1Last Post: 08-07-2007, 06:49 PM -
help with file reader
By jason27131 in forum New To JavaReplies: 1Last Post: 08-01-2007, 03:03 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks