Hello,

I am planning to come up with an application that recognizes a XML DTD
and
builds a User Interface based on Swing. The application is an XML
editor.

My input is DTD, and I have to throw a User Interface based on the DTD
(the DTD will give me the list of fields required in the final xml
document).
Once the user edits a document using the interface that I provide, I
have to save the UI content as XML document.
In summary, my users need not know XML, DTD to create an xml document.

My current approach is -

1. Create standard UI controls (text boxes for all the elements) in the
DTD specification.
2. Throw the UI Let the user edit the document using my interface
3. When he saves it , I will save the UI object as XML using Java's
Archiver package.
This will give me a chance to not create the UI when the user wants to
edit the document again.
4. Also create the XML document using a DOM parser and save it

I request some one to comment on my approach.

I am looking for a cleaner design to do this. Has anyone attempted a
similar solution. Could you throw some light?

Also, can I use the Archiver package (XMLOutputStream) classes to save
my UI as XML ?

Thanks
Uma



_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to