Generating Wrapper Classes from an XML Schema - Simon Sprott. This article describes how to take an XML schema and generate a set of wrapper classes from it that allow you to manipulate an XML document via simple strongly typed objects, thus removing the need for developers to get bogged down in the complexities of schemas or deal with the nuts and bolts of MSXML. [Sam Gentile's Radio Weblog]
This is interesting Sam but I keep wondering under what circumstances one would want to substitute XML for databases? One scenario I can think of is the production of reports, which can be saved as XML files and regenerated pretty quickly so if a person wants to see the very same report again, it doesn't incure the db hit. I definetly like this approach better than XSLT. In this one you'd continue using aspx pages to display the information and don't have to switch context from one "type" of display mechanism to another. That certainly helps.
By the way - I think Chris Sells has a sample that produces a wrapper to serialize an object to XML and reconsitutes it back as well.
9:33:05 AM
|