[xsd-users] No c++ code generated for "anyAttribute"

Boris Kolpackov boris at codesynthesis.com
Tue Nov 27 07:52:15 EST 2012


Hi Arul,

Prakash, Arul <Arul.Prakash2 at rsa.com> writes:

> I am using the latest version of xsd(ie 3.3.0). I generated c++ code
> for my xml schemas using it.But it seems to be ignoring the "anyAttribute"
> But in release notes of CodeSynthesis XSD 3.0.0 it is mentioned that it
> ll support anyAttribute. Is this support removed in 3.3.0 ?

The wildcard mapping needs to be explicitly enabled with the 
--generate-wildcard option. See Section 2.12, "Mapping for any and
anyAttribute" in the C++/Tree Mapping User Manual for this and other
requirements:

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

Boris



More information about the xsd-users mailing list