[xsd-users] xsd namespace confusion for iterator types

Macumber, Daniel Daniel_Macumber at nrel.gov
Mon Dec 1 10:45:41 EST 2008


Hello, I am using CodeSynthesis cxx-tree 3.2.0 it looks like some of the
iterator types do not anchor the "xsd::cxx" namespace to the root c++
namespace (e.g. "::xsd::cxx").  This causes the code not to compile if
our target namespace also includes an "xsd".  I was able to fix this
problem by performing the following find and replace on the generated
code:

 

"xsd::cxx::tree::sequence< T >::iterator" ->
"::xsd::cxx::tree::sequence< T >::iterator"

"xsd::cxx::tree::sequence< T >::const_iterator" ->
"::xsd::cxx::tree::sequence< T >::const_iterator"

 

It would be great if this change could make it in to the CodeSynthesis
code for the next release as it is such an easy (presumably) fix.
Thanks a lot, every other indication we've had is that the xsd-cxx tool
is great!

 

Dan Macumber

NREL Commercial Buildings

daniel_macumber at nrel.gov

(303) 384-6172

 

 




More information about the xsd-users mailing list