[xsd-users] Basic questions

bruno.marotta at fortis.com bruno.marotta at fortis.com
Fri Nov 9 05:12:25 EST 2007


Hi,

I just started with XSD C++ Data Binding. I have to generate a xml from scratch. I have already succesfully generated the headers for xsd files.

The thing is that main xsd doesn't define its type:


<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by mike (McGraw-Hill) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:include schemaLocation="CDOInputForHeader.xsd"/>
	<xs:include schemaLocation="CDOInputForSDR.xsd"/>
	<xs:include schemaLocation="CDOInputForReport.xsd"/>
	<xs:element name="CDOEvaluator"/>
</xs:schema>


The xml I have to generate is something like this:

<CDOEvaluator>
	<InputForSDR>
...

I can create my CDOEvaluator and InputForSDR node like this:

	xml_schema::type cdoEvaluator
	...
	InputForSDR inputForSDR(p);

But how can I add the inputForSDR to the cdoEvaluator?

Thanks,

Bruno
-------------- next part --------------

= = = = = = = = = = = = = = = = = = = = = = = = =
Fortis disclaimer :
http://www.fortis.be/legal/disclaimer.htm

Privacy policy related to banking activities of Fortis:
http://www.fortis.be/legal/privacy_policy.htm
= = = = = = = = = = = = = = = = = = = = = = = = =



More information about the xsd-users mailing list