DOM certainly has nothing built in that could directly help you with
this problem. It will allow you to build a DOM tree, but schemas are not
meant to be used like that.

Schemas are for validating the correctness of a document, not for
building a document. The trouble is, a schema implies a set of XML
documents, not just one.

Schema validation is currently partially implemented in xerces-j, and
there are plans for it in xerces-c, but no implementation yet.

John

Pallavi Mahajan wrote:
> 
> 
> Hi,
> I need some generic application in C++ which will generate an XML file
> by reading an existing XML schema file (which decides the actual
> formal of the XML to be generated).
> i.e., i have some data in some structure, and for that data i need to
> generate an XML file. Now this file needs to be generated in some
> specified format, which is dictated by the schema file. How do i
> generate the XML file for this.
> 
> How does Xerces help in XML generation??
> 
> Regards,
> Pallavi.
> 
> --
> ..........................................................
> 
> dOUbt Is nOt A plEAsAnt cOndItIOn, bUt cErtAInty Is AbsUrd
> 
> 

-- 
John Snelson, Software Engineer       DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to