First off, what you describe is possible.  There are probably a number of
ways to accomplish this, you might want to consider using something like XML
binding for working with the XML data structures directly. There are
frameworks like JAXB, XMLBeans, etc. that enable you to work wtih XML
documents in a more business object oriented or just plain java object
fashion, rather than using DOM.  You might also consider using XSLT directly
to transform the document, using something like XUpdate that can describe
changes to an XML document using an XML grammar.  Then there's XForms, which
is intended to solve some of the same problems.

  -----Original Message-----
  From: Greg Hess [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 17, 2003 3:36 PM
  To: Struts
  Subject: [OT] -- Editing XML


  Hi All,



  I have been assigned to add functionality to my STRUTS app that provides
the ability to alter many 3rd party defined XML data structures. It would
like to take a 3rd party XML data structure and defined XSLT to create a
HTML form for editing the underling XML data structure. Only requiring basic
input validation maybe from a schema. When the form has been completed and
submitted the XML data structure would be recreated with the new input
values. I need to do this in a generic way so that the same application can
process and edit any defined XML data structure.



                                      XML/XSLT a HTML FORM a XML



  Can I do this?



  Are there any tools out there that enable this?



  Could a 3rd party define a XML data structure and XSLT that would create a
HTML form for editing the data structure?



  Any comments/input is greatly appreciated, I have been assigned this task
and have no idea if it is possible or where to start.



  Many Thanks,



        Greg Hess

        Software Engineer

        Wrapped Apps Corporation

        275 Michael Cowpland Dr.

        Suite 201

        Ottawa, Ontario

        K2M 2G2

        Tel: (613) 591 -7552

        Fax: (613) 591-0523

        1 (877) 388-6742






Reply via email to