Results 1 to 1 of 1
-
Creating Document object for XML parsing
We need an instance of DocumentBuilder to create Document object that will map the XML file in memory. Following example will show how to do it:
Java Code:File file = new File("C:\\myFile.xml"); DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse(file);
Similar Threads
-
Creating a Comparable object
By Java Tip in forum java.langReplies: 0Last Post: 04-15-2008, 07:38 PM -
Need help with creating array of type object
By riz618 in forum New To JavaReplies: 3Last Post: 01-29-2008, 06:14 AM -
Creating a File object in Servlet
By Java Tip in forum Java TipReplies: 0Last Post: 01-16-2008, 10:24 AM -
Creating object of Type Object class
By venkatv in forum New To JavaReplies: 3Last Post: 07-17-2007, 03:33 PM -
OutOfMemoryError while creating a new object of file with size more than 150 MB
By Jamie in forum Advanced JavaReplies: 1Last Post: 05-20-2007, 08:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks