This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes how to save as XML with some predefined extensions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to save as XML with some predefined extensions" Watch "how to save as XML with some predefined extensions" New topic
Author

how to save as XML with some predefined extensions

kumar m
Greenhorn

Joined: Aug 20, 2002
Posts: 13
hi All,
In my application a template has to be created which should contain field headers and their respective field types - example field header LEVEL and field type COMBO BOX. Purpose is - a table will be created based on the fields in the template. Now I want to save this template as XML file with some predefined extension (like .templ). Later in my application i will retreive the saved template and use it to create table.
How can i save the file as XML with some predefined extension. We are using Swing to create template. Please help me with sample programs to solve this problem.
awaiting for your mail
Thank you
Regards
MKumar
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You'll need some XML processing package like JDOM to read XML as anything other than text.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
Consider Paul's rocket mass heater.
 
subject: how to save as XML with some predefined extensions