Oracle8i Application Developer's Guide - XML
Release 3 (8.1.7)

Part Number A86030-01

Library

Solution Area

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

Using XML Parser for C++, 8 of 10


Invoking XML Parser for C++

XML Parser for C++ can be invoked in two ways:

Command Line Usage

The XML Parser for C++ can be called as an executable by invoking bin/xml

Table 22-2 lists the command line options.

Table 22-2 XML Parser for C++: Command Line Options
Option  Description 

-c 

Conformance check only, no validation 

-e encoding 

Specify input file encoding 

-h 

Help - show this usage help 

-n 

Number - DOM traverse and report number of elements 

-p 

Print document and DTD structures after parse 

-x 

Exercise SAX interface and print document 

-v 

Version - display parser version then exit 

-w 

Whitespace - preserve all whitespace  

Writing C++ Code to Use Supplied APIs

XML Parser for C++ can also be invoked by writing code to use the supplied APIs. The code must be compiled using the headers in the include/ subdirectory and linked against the libraries in the lib/ subdirectory. Please see the Makefile in the sample/ subdirectory for full details of how to build your program.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Solution Area

Contents

Index