[All Packages] [Next Class]
Class: XMLClassGenerator
This class contain the method for generating classes based on a DTD.


generate
- Function:
- Generates classes for the given DTD. Two files are created in
the output directory outdir (or in the currect directory
if outdir is NULL): DTDname.h and
DTDname.cpp, both named after the DTD.
One class is generated for each defined element in the DTD.
- Prototype:
- uword generate(DocumentType *dtd, char *outdir)
- Arguments:
- dtd -- DTD whose elements to generate classes for
- outdir -- directory in which to place output files
- Returns:
- uword -- error code, 0 on success