[xsd-users] Option --generate-xml-schema not typedef-ing all
exceptions?
Lyndon
mail.lyndon at gmail.com
Thu Jan 26 19:19:41 EST 2012
Hi,
I'm using xsd 3.3.0 with xerces 2.7.0 and noticed that when I use the
--generate-xml-schema option for xsd, the resulting schema file doesn't
typedef all of the possible exceptions like it did in previous versions.
In particular, I noticed that xml_schema::no_type_info and
xml_schema::not_derived were not included in the resulting xml file. I
just wanted to know if this was a bug.
The command I used was:
xsd cxx-tree --hxx-suffix .h --generate-serialization --generate-xml-schema
xml_schema.xsd
The resulting file had these exceptions, but were missing the two I
mentioned:
typedef ::xsd::cxx::tree::exception< char > exception;
typedef ::xsd::cxx::tree::bounds< char > bounds;
typedef ::xsd::cxx::tree::duplicate_id< char > duplicate_id;
typedef ::xsd::cxx::tree::parsing< char > parsing;
typedef ::xsd::cxx::tree::expected_element< char > expected_element;
typedef ::xsd::cxx::tree::unexpected_element< char > unexpected_element;
typedef ::xsd::cxx::tree::expected_attribute< char > expected_attribute;
typedef ::xsd::cxx::tree::unexpected_enumerator< char >
unexpected_enumerator;
typedef ::xsd::cxx::tree::expected_text_content< char >
expected_text_content;
typedef ::xsd::cxx::tree::no_prefix_mapping< char > no_prefix_mapping;
typedef ::xsd::cxx::tree::serialization< char > serialization;
In previous versions, I think all of the exceptions were generated. For
example, in xsd 2.3.1, here is what the same command produced in the file:
typedef ::xsd::cxx::tree::exception< char > exception;
typedef ::xsd::cxx::tree::parsing< char > parsing;
typedef ::xsd::cxx::tree::expected_element< char > expected_element;
typedef ::xsd::cxx::tree::unexpected_element< char > unexpected_element;
typedef ::xsd::cxx::tree::expected_attribute< char > expected_attribute;
typedef ::xsd::cxx::tree::unexpected_enumerator< char >
unexpected_enumerator;
typedef ::xsd::cxx::tree::expected_text_content< char >
expected_text_content;
typedef ::xsd::cxx::tree::no_type_info< char > no_type_info;
typedef ::xsd::cxx::tree::not_derived< char > not_derived;
typedef ::xsd::cxx::tree::duplicate_id< char > duplicate_id;
typedef ::xsd::cxx::tree::serialization< char > serialization;
typedef ::xsd::cxx::tree::no_namespace_mapping< char >
no_namespace_mapping;
typedef ::xsd::cxx::tree::no_prefix_mapping< char > no_prefix_mapping;
typedef ::xsd::cxx::tree::xsi_already_in_use< char > xsi_already_in_use;
typedef ::xsd::cxx::tree::bounds< char > bounds;
Thanks!
More information about the xsd-users
mailing list