XML Schema is an XML language. You should be able to use standard DOM or SAX programming techniques to build a Schema document.
(I don't know whether the Xerces Schema-specific data model can be serialized back to XML syntax. If it can, that might be another approach -- but would be nonportable.) ______________________________________ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (http://www.ovff.org/pegasus/songs/threes-rev-11.html)