Discussion Locked

Automating input form generation

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am currently trying to develop (in a very short space of time) a way of dynamically building up a user interface from within a servlet.

This user interface is needed to allow a user to input the required details to then construct an XML instance of the information gathered.

I have been looking at some of the parsers available but these do not seem to support the direct parsing of XSD files, this leaves me somewhat at a loss as to where to go from here??

1 reply

by jay eckles

I'm not sure what an XSD file is, maybe you meant XSL? In any case, you should take a look at some of the JAXP XML parsers - they are beginning to provide very thorough support for XML. Xerces is one I hear mentioned a lot, but there are several others. I doubt there's much you could need to do with XML that someone hasn't already done in Java.

Also, you might want to look into the Stuts framework at Apache. It's a means of separating user interface from content and might be a means of achieving the goal you seem to be after.

I wish I could help you more, but my experience with Java XML parsers has been in lightweight and special-purpose parsers, like XParse-J and other "mini" parsers.

Good luck.

Jay

This discussion is closed to new replies.