This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi all- I was trying to import com.sun.xml.tree.XmlDocument to my java code but it gives me error. I guess, com.* packages are not a part of jaxp. Is there aything that I should do like setting the classpath ? Thanks Radha
Hi Lasee - I was trying to work using DOM where I had to typecast the document to (XmlDocument) while creating an xml file. But now I have figured that com.sun.xml.tree.xmldocument has ben replaced by org.apache.crimson.tree.XmlDocument. But would you please let me know (since you have asked why was i using com.sun* package), if there is any other way ? Thank you for your reply. Radha
Joined: Jan 23, 2002
If you're using DOM, I'd think you can use the standard org.w3c.dom.Document interface (and the rest of org.w3c.dom.*) instead of the actual implementation classes.