Dynamically generate form from XML & XSD?

  • Thread starter Thread starter Scott Zabolotzky
  • Start date Start date
S

Scott Zabolotzky

I'm sure somebody has to have done this already but I can't find
any good references.

If I have an XML file with an associated XSD what is the best way
to dynamically generate a web form with proper controls for the
various elements in the XML file?

I found an article that describes how to do it using stylesheets
(http://www.dnzone.com/ShowDetail.asp?NewsId=151) but it's a little
cumbersome and was tailored to .NET 1.1.

Is there a better way to do this with .NET 2.0?

Scott
 
Currently, I'm developing an application which does exactly that.
The controls are created in viewstate dynamically and event handlers are
associated with the dynamic control events.

It's quite a long story to describe how to go about it. The secret is to use
viewstate.
Also, store the page's viewstate to a sqlserver 'cause the viewstate size
increases pretty quickly.

The application also allows the user to add control groups or individual
controls(identical to adding xml nodes or xml controls) and stores the screen
values in an xml document. It also recreates the page controls based on xml
document tree structure.

You might want to try developing controls from xml documents with just one
node.
 
Back
Top