From XML data to AWT objects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Luca Parodi

    #1

    From XML data to AWT objects

    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




  • Mark Preston

    #2
    Re: From XML data to AWT objects

    On Sun, 10 Aug 2003 21:57:22 GMT, "Luca Parodi" <luc_par@tin.it >
    wrote:
    [color=blue]
    >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.
    >[/color]
    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.

    Comment

    Working...