<html><div style='background-color:'><DIV>
<P>Hello All,</P>
<P>I've just started working on JDOM and trying to parse XML file with JDOM.</P>
<P>I've set classpath to jdom.jar, xerces.jar and JDOM_HOME is properly set.</P>
<P> </P>
<P>C:\General>javac EchoXML.java<BR>EchoXML.java:17: cannot access org.w3c.dom.Element<BR>file org\w3c\dom\Element.class not found<BR> Document d2 = dombuild.build(new java.io.File(args[0]));<BR> ^<BR>1 error</P>
<P> </P>
<P>I'm getting above error.</P>
<P>EchoXML.java looks like:</P>
<P>import java.io.*;</P>
<P>import org.jdom.Document;<BR>import org.jdom.JDOMException;<BR>import org.jdom.input.DOMBuilder;<BR>import org.jdom.output.XMLOutputter;</P>
<P><BR>public class EchoXML {<BR> public static void main(String[] args) {<BR> <BR> try {<BR> //SAXBuilder saxbuild = new SAXBuilder();<BR> DOMBuilder dombuild = new DOMBuilder();</P>
<P> //Document d = saxbuild.build(new File(args[0]));<BR> Document d2 = dombuild.build(new java.io.File(args[0]));<BR> <BR> XMLOutputter xmlout = new XMLOutputter("%%%%%");<BR> xmlout.output(d2, System.out);</P>
<P> System.out.println("\n----------------------------");</P>
<P> //xmlout.setTrimText(true);<BR> //xmlout.setIndent(false);</P>
<P> //xmlout.output(d2, System.out);<BR> }<BR> catch (Exception ex) {<BR> ex.printStackTrace();<BR> }<BR> }<BR>}</P>
<P>Can anybody please help me in this error. I'm trying since few days and still I am there where I had started:-(</P>
<P>Thank You,</P>
<P>Pallavi</P>
<P><BR> </P></DIV></div><br clear=all><hr>STOP MORE SPAM with <a href="http://g.msn.com/8HMRENUS/2728??PS=">the new MSN 8</a> and get 2 months FREE*</html>