开发者

parser the xml and build a ui for user

开发者 https://www.devze.com 2022-12-25 22:04 出处:网络
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 informati

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 comple开发者_如何学Pythonx. 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?


Interesting to see someone else busy with WPS. :)

I believe WPS is quite special so that no existing tool would be able to build user interfaces for WPS processes. When we were solving this task, we just took a JAXB-based parser for WPS and simply built the UI programmaticaly using factories. We've implemented Swing-based as well as Javascript/OpenLayers based generic WPS clients this way.

0

精彩评论

暂无评论...
验证码 换一张
取 消