Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#125 Support Inline Schema's

open
XML Tools (10)
5
2012-06-22
2012-06-22
Chris
No

Currently the XML Tools don't support validating against inline schema's like the following:

<?xml version="1.0" encoding="utf-8"?>
<SpareParts>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="SparePart">
<xs:complexType>
<xs:sequence minOccurs="0">
<xs:element minOccurs="1" maxOccurs="1" name="Item_Class" type="xs:string" />
<xs:element minOccurs="1" maxOccurs="1" name="APN" type="xs:string" />
<xs:element minOccurs="1" maxOccurs="1" name="Description" type="xs:string" />
<xs:element minOccurs="1" maxOccurs="1" name="Total_Quantity" type="xs:integer" />
<xs:element minOccurs="1" maxOccurs="1" name="Recommended_Quantity" type="xs:integer" />
<xs:element minOccurs="1" maxOccurs="1" name="UoM" type="xs:string" />
<xs:element minOccurs="1" maxOccurs="1" name="Price" type="xs:double" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<SparePart>
<Item_Class>FASTENER</Item_Class>
<APN>010248</APN>
<Description>TOPLOCK HEX LOCKNUT, 3/8-16 GRADE 2 STEEL, ZINC PLATED.</Description>
<Total_Quantity>26760</Total_Quantity>
<Recommended_Quantity>0</Recommended_Quantity>
<UoM>EA</UoM>
<Price>0.30</Price>
</SparePart>
</SpareParts>

Discussion