• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

XML

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please take a look at these pages:
http://forums.java.sun.com/thread.jspa?forumID=34&tstart=30&threadID=529647#38;trange=15
https://coderanch.com/t/123471/XML/com-sun-xml-tree-package
http://java.sun.com/products/jdk/faq/faq-sun-packages.html

Why do you want to import that package?
 
Kavitha Chelladurai
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic