[xsd-users] unhandled exception when using cxx-tree --omit-default-attributes and attribute with use="required" in xsd

Gordon Kramer gkr at as-guides.com
Fri Feb 15 06:54:05 EST 2008


Hi,

when using 

xsd cxx-tree   --generate-serialization --omit-default-attributes  a.xsd

schema adapted from xsd-3.1.0/tests/cxx/tree/default/test.xsd:
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test"
targetNamespace="test" >

  <complexType name="type">
    <sequence>
      <element name="a" type="string"/>
    </sequence>
    <attribute name="x" type="string" use="required" />
    <attribute name="y" type="int" default="-20" />
  </complexType>

  <element name="root" type="t:type" />

</schema>

and is also attached results in:
terminate called after throwing an instance of
'FrontendElements::Context::NoEntry'
Aborted (core dumped)

I'd like to help but was not able to get xsd compiled with debug
information yet. 

Best regards
Gordon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.xsd
Type: application/xml
Size: 388 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20080215/2016b119/a.xml


More information about the xsd-users mailing list