...I'm having problems with this,
import java.io.File;import javax.swing.text.Document;import javax.swing.text.Element;import org.jdom2.input.DOMBuilder;public class ReadXMLFile { public static void main(String[] ar) { try { File XmlFile = new File("C:/Documents and Settings/Carlo/Desktop/Converter Air Hong Kong/Stud.xml"); DOMBuilder db = new DOMBuilder(); Document dc = db.build(XmlFile); Element[] e = dc.getRootElements(); System.out.println("Root " + e); } catch (Exception e) { System.out.println("Exception : " + e.getMessage()); } }}
in Line Document dc = db.build(XmlFile); exception say's (Exception : Uncompilable source code)
please help me with this
thanks
ChangeBhanu Prakash May 26, 2011 at 2:41 PM
But, can we dynamically generate an XML file at the desired path? Using Java.
Exception need helpCarlo May 7, 2012 at 7:27 AM
...I'm having problems with this, import java.io.File;import javax.swing.text.Document;import javax.swing.text.Element;import org.jdom2.input.DOMBuilder;public class ReadXMLFile { public static void main(String[] ar) { try { File XmlFile = new File("C:/Documents and Settings/Carlo/Desktop/Converter Air Hong Kong/Stud.xml"); DOMBuilder db = new DOMBuilder(); Document dc = db.build(XmlFile); Element[] e = dc.getRootElements(); System.out.println("Root " + e); } catch (Exception e) { System.out.println("Exception : " + e.getMessage()); } }} in Line Document dc = db.build(XmlFile); exception say's (Exception : Uncompilable source code) please help me with this thanks
Post your Comment