[xsd-users] Help, about [2.12.3 Mapping for any with the Sequence
Cardinality Class]
liyubo
liyubo at dayang.com.cn
Thu Nov 21 05:36:20 EST 2013
Hi,Boris Kolpackov, I have a problem about the manual at [2.12.3 Mapping for any with the Sequence Cardinality Class].
Here my XSD is
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="object">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
And here is the generate cmd
xsd cxx-tree --generate-serialization --generate-polymorphic any.xsd
But the code generated is
class object: public ::xml_schema::type
{
public:
// Constructors.
//
object ();
object (const ::xercesc::DOMElement& e,
::xml_schema::flags f = 0,
::xml_schema::container* c = 0);
object (const object& x,
::xml_schema::flags f = 0,
::xml_schema::container* c = 0);
virtual object*
_clone (::xml_schema::flags f = 0,
::xml_schema::container* c = 0) const;
virtual
~object ();
// Implementation.
//
protected:
void
parse (::xsd::cxx::xml::dom::parser< char >&,
::xml_schema::flags);
protected:
};
There is no element_sequence like [2.12.3 Mapping for any with the Sequence Cardinality Class]. Is there anything wrong? How can I solve this? Please help me, Thank you!
2013-11-21
liyubo
More information about the xsd-users
mailing list