parser the xml and build a ui for user

Posted by hguser on Stack Overflow See other posts from Stack Overflow or by hguser
Published on 2010-04-08T15:51:20Z Indexed on 2010/04/08 15:53 UTC
Read the original article Hit count: 247

Filed under:
|
|
|

Hi: Now I have to handle some xml in my java swing application. I have to build a swing ui according to the special schema ,then user can fill some values.After user completed,I will collect the information,validate the value and then build a xml file.

For building xml file I can use the xmlbeans,however how to parse the schema and build a swing ui? Since the schema is rather complex. A schema can be found here:

example schema

I have to parser this schema,for the LiteralInputType ,a JTextArea should be built. However there are other types "complexType" and etc.. These types may not occur at the sametime. Some times only the LiteralInputType is needed,somethimes the ComplexType is needed,also maybe all of them are needed.

So, how to implement it? Anyone can help me?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing