XML Technology Samples for C++
Samples
are supplied with this XML for OpenVMS release to illustrate basic capabilities
of XML parsing and stylesheet processing with C++. In particular, they
illustrate the functioning of the following components in this kit:
- XML
parsing in C++
- XSLT
processing in C++
These samples demonstrate server-side processing on OpenVMS.
They are demonstrated by building, linking, and executing them using
the supplied command file.
You may
wish to test them within a web server environment, by using Compaq Secure
Web Server for example. In this case, you will require an XML-capable browser (Internet
Explorer 5 or later) installed on a Windows client.
Samples
are from Apache Software Foundation XML Project. Their description and
and function are explained at the XML Project web site by following
the links.
XML
Parsing Samples
1: SAXCount
2: SAXPrint
3: DOMCount
4: DOMPrint
5: MemParse
6: Redirect
7: PParse
8: StdInParse
9: EnumVal
10: CreateDomDocument
XSLT
Processing Samples
1: SimpleTransform
2: UseStylesheetParam
3: TraceListen
4: CompileStylesheet
5: ThreadSafe
6: XPathWrapper
7: ExternalFunction
Building
and Running the Sample Tests
To test
the samples, simply use the supplied command files to compile and link
the programs that call the XML library routines.
- From
the .SRC directory,
to
build and run the XML parsing samples, run the XER_SAMPLES.COM
file:
@XER_SAMPLES.COM
- From
the .SRC directory,
to
build and run the XML parsing samples, run the XAL_SAMPLES.COM
file:
@XAL_SAMPLES.COM
The commands
create all corresponding .EXE
files in the subdirectories under .SAMPLES.
(Each sample is in a separate subdirectory with the corresponding name.)
The .COM
file compiles, links, and runs all the samples consecutively, so that
you will see the output of each test sequentially.
The following
schematic illustrates the order in which XML files are typically processed
and executed:

Return
to the Contents