Hi Kevin,
Is this still an issue. I am a bit tight for time now but I may be able to assist in more detail if needs.
In your schema I had to comment out the resourceURI line, and I changed booleanInt to xs:Integer.
That done, Altova was able to use the schema and this is what it generated as a default sample:
<!--Sample XML file generated by XMLSpy v2009 sp1 (http:
<lineitems xsi:nonamespaceschemalocation="sample.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<lineitem owned="0" productname="String" quantity="0" productid="String" lineitemstatus="String">0</lineitem>
<lineitem owned="0" productname="String" quantity="0" productid="String" lineitemstatus="String">0</lineitem>
</lineitems>
It would look like your XML should read:
<lineitems>
<lineitem owned="0" quantity="1" productid="productID">1</lineitem>
</lineitems>
Now on the otherhand, if we take your XML as set in stone and ask Altova to generate a schema based on that piece of XML, this is what it produces:
<!--W3C Schema generated by XMLSpy v2009 sp1 (http:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="quantity">
<xs:simpletype>
<xs:restriction base="xs:byte">
<xs:enumeration value="1" />
</xs:restriction>
</xs:simpletype>
</xs:element>
<xs:element name="productId">
<xs:simpletype>
<xs:restriction base="xs:string">
<xs:enumeration value="$productID" />
</xs:restriction>
</xs:simpletype>
</xs:element>
<xs:element name="owned">
<xs:simpletype>
<xs:restriction base="xs:byte">
<xs:enumeration value="0" />
</xs:restriction>
</xs:simpletype>
</xs:element>
<xs:element name="lineItems">
<xs:complextype>
<xs:sequence>
<xs:element ref="lineItem" />
</xs:sequence>
</xs:complextype>
</xs:element>
<xs:element name="lineItem">
<xs:complextype>
<xs:sequence>
<xs:element ref="quantity" />
<xs:element ref="productId" />
<xs:element ref="owned" />
</xs:sequence>
<xs:attribute name="id" use="required">
<xs:simpletype>
<xs:restriction base="xs:byte">
<xs:enumeration value="1" />
</xs:restriction>
</xs:simpletype>
</xs:attribute>
</xs:complextype>
</xs:element>
</xs:schema>