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, 3 of 6


Using XML C++ Class Generator

The XML C++ Class Generator creates source files from an XML DTD. The Class Generator takes the Document Type Definition (DTD) and generates classes for each defined element. Those classes are then used in a C++ program to construct XML documents conforming to the DTD.

This is useful when an application wants to send an XML message to another application based on an agreed-upon DTD or as the back end of a web form to construct an XML document. Using these classes, C++ applications can construct, validate, and print XML documents that comply with the input DTD.

The Class Generator works in conjunction with the Oracle XML Parser for C++, which parses the DTD and passes the parsed document to the class generator.

See Also:

Chapter 3, "Oracle XML Components and General FAQs", "Using Oracle XML Components to Generate XML Documents: C++"

External DTD Parsing

The XML C++ Class Generator can also parse an external DTD directly without requiring a complete (dummy) document. By using the Oracle XML Parser for C++ routine, xmlparsedtd().

The provided command-line program xmlcg has a new '-d' option that is used to parse external DTDs. See "xmlcg Usage" .

Error Message Files

Error message files are provided in the mesg/ subdirectory. The messages files also exist in the $ORACLE_HOME/oracore/mesg directory. You may set the environment variable ORA_XML_MESG to point to the absolute path of the mesg/ subdirectory although this not required.


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