I am attempting to parse an XML with user defined data types.  I am
using these because some of these data types appear in multiple places
in the XML document.  For example one of the types I have is a location
which is defined as indicated below.  I use this for many assets, each
with different other parameters.

 

<xsd:complextType name="Location">

                <xsd:sequence>

                                <xsd:element name="Latitude">

<xsd:restriction base="xsd:float">

<xsd:minInclusive value="-90.0" />

<xsd:maxInclusive value="90.0" />

                                                </xsd:restriction>

                                </xsd:element>

                                <xsd:element name="Longitude">

<xsd:restriction base="xsd:float">

<xsd:minInclusive value="-180.0" />

<xsd:maxInclusive value="180.0" />

                                                </xsd:restriction>

                                </xsd:element>

                                <xsd:element name="Altitude">

<xsd:restriction base="xsd:float">

<xsd:minInclusive value="-300.0" />

<xsd:maxInclusive value="43000.0" />

                                                </xsd:restriction>

                                </xsd:element>

                </xsd:sequence>

</xsd:complexType>

 

The schema validates, and the problem comes in that this structure
contains no actual data, only the definitions of data.  The auto
generated -pskel and -pimpl files has shells for this, but then I am
having trouble with the use for different assets because I do not have a
defined implementation for the shell.

 

Can anyone point me in the right direction for resolving this issue.

 

 

Monte J. Jones, Contractor

Colorado Professional Resources

SMC/SLG/WMLE

1050 E Stewart Ave

Colorado Springs, CO 80914

719-556-9903

 

 

Reply via email to