[xsd-users] How to add data to xml any type of object

Boris Kolpackov boris at codesynthesis.com
Tue Sep 10 08:14:38 EDT 2013


Hi Albert,

Babinskas, Albert <albert.babinskas at imagingsciences.com> writes:

> <xs:complexType name="brandXml_t">
>     <xs:sequence>
>       <xs:any processContents="skip" namespace="##other"/>
>     </xs:sequence>
>   </xs:complexType>
> 
> It does compile, but I cannot get any_sequence, any_iterator or any 
> to appear.

In your case there will be just any() accessors/modifiers since the
cardinality is 1.


> I am not sure what I am doing wrong.

Perhaps you are not compiling your schema with the --generate-wildcard
option. See Section 2.12, "Mapping for any and anyAttribute" in the 
C++/Tree Mapping User Manual:

http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/manual/#2.12

Boris



More information about the xsd-users mailing list