Using XML as a Data Store

There are many circumstances where it makes sense to use XML as the primary vehicle for storing data, but there are other cases where it does not make sense. Before looking at these scenarios, let's look at how to retrieve data stored as XML.

Accessing XML Documents Through ASP

There are two ways to retrieve an XML document:

  • As a flat file as a text stream.

  • As an XML DOM object.

When the first method is employed, all the native string manipulation methods of the language being used (VBScript), as well as the TextStream methods, can be employed to manipulate the string.

Retrieving an XML File as a Flat Text File

Retrieving an XML file as a text file and making alterations to it will be demonstrated by a simple example. ...

Get XML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.