wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
jQuery in Action, 2nd edition
 
subject: how to save as XML with some predefined extensions
 
Similar Threads
Mistakenly changed web.xml
Deleting columns in excel file to create new Excel file
How to Edit xml(rendered as html) file and again save it
How to create MS Word Doc using HWPF POI
Tool for generating an XSL sheet of a XML