Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help creating XML-Schema

Status
Not open for further replies.

philk12

Programmer
Dec 29, 2005
20
US
All

I'm quite new to XML and maybe there is a chance that I do not fully understand the way I am supposed to do this.

I generate a XML-Schema and puts it in another project. When I generate the schema I get following

Character field sample
<xsd:element name="FIELD1">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

Packed field sample

<xsd:element name="FIELD2">
<xsd:simpleType name="decimal">
<xsd:restriction base="xsd:anySimpleType"/>
</xsd:simpleType>
</xsd:element>

Signed field sample
<xsd:element name="FIELD3">
<xsd:simpleType name="decimal">
<xsd:restriction base="xsd:anySimpleType"/>
</xsd:simpleType>
</xsd:element>

Packed or signed filed gets the same type without any scale or precision Comment on column is missing in the element description.

What can I do to get the missing parts into the XML-Schema?

Best regards and thanks in advance
 
You may find a handy map of the built-in base and derived datatypes here.

I don't think 'packed' has much meaning. Were you expecting <xsd:totalDigits /> and <xsd:fractionDigits /> elements?

Tom Morrison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top