[xsd-users] Parsing for the substitutionGroup
Ninh Tran Dang
tdninh at tma.com.vn
Wed Mar 5 21:22:55 EST 2008
Hi Boris,
I tried the XSD for the substitutionGroup defintion, and I got another
problem when parsing the elements in the substitutionGroup with the same
element type (not the derived type as the example of 5.4 section -
http://www.codesynthesis.com/projects/xsd/documentation/cxx/parser/guide/#5.
4). Please see the schema below, the "startup", "candidate", and "running"
defined with the same configNameType type.
Could you please help me answer this?
Thanks,
Ninh
<xs:complexType name="configNameType"/>
<xs:element name="config-name" type="configNameType"
abstract="true"/>
<xs:element name="startup" type="configNameType"
substitutionGroup="config-name"/>
<xs:element name="candidate" type="configNameType"
substitutionGroup="config-name"/>
<xs:element name="running" type="configNameType"
substitutionGroup="config-name"/>
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Thursday, February 14, 2008 9:00 PM
To: Ninh Tran Dang
Cc: xsde-users at codesynthesis.com; dangninhtran at vnn.vn
Subject: Re: [xsde-users] Parsing for the substitutionGroup
Hi Ninh Tran,
Ninh Tran Dang <tdninh at tma.com.vn> writes:
> I currently use the XSDe as a part of my program. I have difficulty with
> parsing the NETCONF schema using the substitutionGroup definition.
XML Schema polymorphism (xsi:type and substitution groups) are not
yet supported in XSD/e though we are planning to add this support
in the next release which is scheduled for the end of April.
Another alternative would be to use XSD instead of XSD/e. The
C++/Parser mapping in XSD supports polymorphism, see Section
5.4, "Support for Polymorphism" in the C++/Parser Getting
Started Guide:
http://codesynthesis.com/projects/xsd/documentation/cxx/parser/guide/#5.4
Yet another alternative would be for us to implement support for
polymorphism in XSD/e and provide you with a custom binary before
the official release (this shouldn't take more than a few weeks).
This option is only available on the commercial basis with a
proprietary license or priority support contract for XSD/e.
Boris
More information about the xsd-users
mailing list