Accessing XML files via FileAccess
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Carlos_Ruiz
Posted On:   Thursday, August 29, 2002 11:42 PM

Please ¿How can I read an XML file ussing FileAccess for parsing? I don´t know if it is possible, thank you

Re: Accessing XML files via FileAccess

Posted By:   Roger_Hand  
Posted On:   Friday, August 30, 2002 03:21 PM

Try something like this:
java.io.File fileXMLSource = new File("/mypath/myfile.xml");

javax.xml.parsers.DocumentBuilder docBuilder =
javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder();

org.w3c.dom.Document xmlDoc = docBuilder.parse(fileXMLSource);
About | Sitemap | Contact