From XML data to AWT objects

L

Luca Parodi

Hello everybody,
I ask for an info about XML Schema and Java.
I need a tool -or something similar- in order to get .xsd files and create
an output with AWT objects (such as labels, buttons, checkboxes, ..)
following the tags of the .xsd files.
For example: if I parse in the .xsd file the tag <choice> I have to create a
checkbox group representing the choice, if I parse the tag <element> having
the value "string" in its type attribute I have to create a text box or a
label, and so on.
I'm trying to implement all this in Java, but I'd be very happy to find some
Java tool that already makes this work or something similar...
Thank you in advance. Luca Parodi
 
M

Mark Preston

Hello everybody,
I ask for an info about XML Schema and Java.
I need a tool -or something similar- in order to get .xsd files and create
an output with AWT objects (such as labels, buttons, checkboxes, ..)
following the tags of the .xsd files.
Yup - gotcha.

Have you looked at the XMLEncoder utility provided in Java 1.4 as yet?
It will do exactly what you want - and more. For instance, you can use
it to persist your own objects into an XML file if you want to as well
as to persist GUI elements.

Sun recently did an article about it and it should be on the website.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,135
Messages
2,570,789
Members
47,345
Latest member
Datawizard0103

Latest Threads

Top