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 C++ Class Generator, 4 of 6


XML C++ Class Generator Usage

Figure 23-1 summarizes the XML C++ Class Generator usage.

  1. From the bin directory, at the command line, enter the following:

    xml [XML document file name, such as xxxxx]
    
    

    where XML document file name is the name of the parsed XML document or parsed DTD being processed. The XML document must have an associated DTD.

    The Input to the XML C++ Class Generator is an XML document containing a DTD, or an external DTD. The document body itself is ignored; only the DTD is relevant, though the document must conform to the DTD.

    Accepted character set encoding for input files are listed in Appendix E, "XDK for C++: Specifications and Cheat Sheet".

  2. Two source files are output, a xxxxx.h header file and a xxxxx.cpp C++ file. These are named after the DTD file.

  3. The output files are typically used to generate XML documents.

Constructors are provided for each class (element) that allow an object to be created in the following two ways:

A method is provided for #PCDATA (and Mixed) elements to set the data and, when appropriate, set an element's attributes.

Figure 23-1 XML C++ Class Generator Functionality



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