parser the xml and build a ui for user
- by hguser
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?