[xsd-users] any-type Problems

Benjamin Schindler bschindler at inf.ethz.ch
Tue Jun 12 03:15:08 EDT 2012


Hi Boris

You are right, this was it. Thanks a lot

Benjamin

On 12.06.2012 07:25, Boris Kolpackov wrote:
> Hi Benjamin,
>
> Benjamin Schindler<bschindler at inf.ethz.ch>  writes:
>
>> I have this schema here:
>>
>> [...]
>>
>> <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
>>
>> What I noticed is that my GenericSettings class generated by xsd does
>> not contain any members and serializing back to xml will not give me any
>> element. Is this intentional?
> I think you didn't compile your schema with the --generate-wildcard option,
> which adds support for XML Schema wildcards (xs:any and xs:anyAttribute).
> Note that there are some other actions that you will need to take (that's
> the reason why this support is not enabled by default), as described in
> 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