parsing XML Schemas

P

Phil Townsend

I am working on a project in which an XML schema needs to be parsed in
order to create a form. When this form is filled out, an XML document
will be generated that matches the schema. I am a little unsure about
how to go about generating the form from the XML schema. Can anybody
help?
 
B

Bruce Wood

Phil said:
I am working on a project in which an XML schema needs to be parsed in
order to create a form. When this form is filled out, an XML document
will be generated that matches the schema. I am a little unsure about
how to go about generating the form from the XML schema. Can anybody
help?

Sounds like you're basically trying to reproduce Microsoft's InfoPath
product.

You should be able to read the XML schema just like regular XML. If you
want to validate it I believe that you can get the schema for XML
Schema from the http://www.w3c.org website. Then you would have to walk
the nodes in the schema and decide for each element / attribute how to
put the appropriate control on the form so that the user can input the
appropriate data.
 

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

Top