Generating XML as Text in ASP
- 'Dumb as dirt, and just as strong' Generating XML documents in Active Server Pages can be done with scripts that look like typical HTML-generating code.
- Easy, but demands attention to details While leaving off an end tag in an HTML document could cause some problems occasionally, XML is far less forgiving. Using the text-generation method may seem easier, and usually is easier for small projects, but code that uses complex control structures can sometimes be difficult to debug.
- Typically an easy update for HTML-generating code If you need to convert an existing ASP application to generate XML (or even XHTML), it's usually fairly simple to apply search-and-replace techniques along with a bit of cleanup. The more complex the text generation, the more difficult this becomes, and at some point it's worth starting over and changing techniques.
- A weak foundation Text generation is great for quick-and-dirty work, but opens up all kinds of problems as projects become larger. Building a shed on a dirt foundation is fine - just don't try to build a skyscraper.
<Previous Page TOC Next Page>
Copyright 2000 Simon St.Laurent