Win a copy of Spring Boot in Practice this week in the Spring forum!

Kavitha Chelladurai

Greenhorn
+ Follow
since Jan 02, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kavitha Chelladurai

XML
Hello Lasse Koskela,
Thank u for answering my query ... The reason why i needed to import that sun package is that, I want to write the details obtained from (say) a customer to an XML file.
So, if i avoid using the sun package, then how can I use the method like "write - which outputs the XML Document" ???

(Eg) My prg has the code something like this :

try
{
// WRITE XML DOCUMENT TO A FILE

( (XmlDocument) doc).write(new FileOutputStream("cusdetails.xml" ) );

}

where,
doc = object of Document interface
XmlDocument = class obtained from " com.sun.tree.XmlDocument.*; "

So, how can i achieve the same result without using the sun package - which package should i import to get the above said result ??

Thank you.


Kavitha.
XML
Hi,
I have jdk1.4 version in my PC .And want to import "com.sun.xml.tree.XmlDocument.*; " for my java program.. So, do I have to install anything to get the above mentioned package ??...If someone knows abt this,plz help me... Thank u.



Kavitha