[xsde-users] Empty class generated for numerical facets

Adinath Shetye adi4info at gmail.com
Thu Apr 30 05:44:32 EDT 2015


Hi All,
Im trying to generate a XML from schema.xsd(pasted below) using xsde
version 3.2.0 on Ubuntu-14.
Generated code using command:xsde cxx-hybrid --generate-parser
--generate-serializer --generate-aggregate Schema.xsd
But the Schema.hxx file generated has empty class. It should have contained
setter/getter funtions for lattitude.
Am I doing something wrong or  "restriction base="xs:integer" is not
supported?

*Schema.xsd used:*
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

        <xs:simpleType name="Latitude">
                <xs:annotation>
                        <xs:documentation>
                                0.0000001 degree (0.1 micro degree)
                        </xs:documentation>
                </xs:annotation>
                <xs:restriction base="xs:integer">
                        <xs:minInclusive value="-900000000"/>
                        <xs:maxInclusive value="900000000"/>
                </xs:restriction>
        </xs:simpleType>

        <xs:element name="RootNode" type="Latitude"/>
</xs:schema>


*Schema.hxx:*

// Latitude (fixed-length)
//
class Latitude: public ::xml_schema::integer_base
{
  public:
  Latitude ();
};

/ Begin prologue.
//
//
// End prologue.

#include "Schema.hxx"

// Latitude
//

*Schema.cxx:*
#include <stdlib.h>
#include <new>

// Latitude
//

Latitude::
Latitude ()
{
}

// Begin epilogue.
//
//
// End epilogue.

#include <xsde/cxx/post.hxx>


Thanks in Advance,
Adinath


More information about the xsde-users mailing list