You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Zubin Sethna <zs...@technisyst.com.au> on 2008/05/26 07:29:57 UTC
Document synthesis from XML schema
Hi
I've being looking at the CreateDOMDocument sample to get a hint on how
to generate the raw XML for an arbitrary element from a schema.
Basically I'm hoping to write a tool with the following command line:
synthXML <element> <data1> <data2> <data3> ...
where <element> is the element (from the schema) for which I want a
textual XML representation and <data1..n> are the basic data types that
are required to fill out the text nodes of the <element>. The output
should be textual XML data for <element> that meets the schema criteria.
Can anyone suggest a method for doing this or does anyone know of a
publicly available tool that does the same thing?
Thanks
Zubin