Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Problem with an XML schema(Error message)
Problem with an XML schema [message #1613635] Thu, 12 February 2015 20:05 Go to next message
Alejandro Barrero is currently offline Alejandro BarreroFriend
Messages: 11
Registered: February 2011
Junior Member
I am getting the error message "Not well formed: The element type "xs:all" must be terminated by the matching end-tag "</xs:all>"." at line 20 of my schema. The schema is:
<xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ConsignmentDirector" />
<xs:complexType>
<xs:all>
<xs:element name="CreditCardModule" />
<xs:complexType>
<xs:sequence>
<xs:element name="totalDollars" type="xs:integer" />
<xs:element name="totalNumTrans" type="xs:integer" />
<xs:element name="cardCount" type="xs:integer" />
<xs:element name="giftCards" type="xs:integer" />
<xs:element name="totalFuelDiscounts" type="xs:float" />
<xs:element name="totalNonFuel" type="xs:float" />
<xs:element name="retPortionTotal" type="xs:hexBinary"
minOccurs="0" />
<xs:element name="noOutput" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DepartmentModule" />
<xs:complexType>
<xs:sequence>
<xs:element name="deptCountCOMPUTED" minOccurs="0" />
<xs:complexType>
<xs:sequence>
<xs:element name="net" type="xs:float" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="iCOMPUTED" minOccurs="0" />
<xs:complexType>
<xs:sequence>
<xs:element name="dealerFeeSum" type="xs:float" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="deptCount" type="xs:integer" />
<xs:element name="customerTotal" type="xs:float" />
<xs:element name="numTransTotal" type="xs:float" />
<xs:element name="grossTotal" type="xs:float" />
<xs:element name="refundsTotal" type="xs:float" />
<xs:element name="discountsTotal" type="xs:float" />
<xs:element name="netTotal" type="xs:float" />
<xs:element name="dealerFeeTotal" type="xs:float" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InventoryModule" />
<xs:complexType>
<xs:sequence>
<xs:element name="list" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="overShort" type="xs:float" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tankCount" type="xs:integer"
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="NwpNetProductModule" />
<xs:complexType>
<xs:sequence>
<xs:element name="prodCount" type="xs:integer" />
<xs:element name="prodCount" type="xs:hexBinary"
minOccurs="0" />
<xs:element name="dealerFeeTotal" type="xs:float"
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PriceChangeModule" />
<xs:complexType>
<xs:sequence>
<xs:element name="totalGalSold" type="xs:integer" />
<xs:element name="totalAmtDue" type="xs:integer" />
<xs:element name="totalCommDue" type="xs:integer" />
<xs:element name="priceChanges" type="xs:hexBinary" />
<xs:element name="curIdxCOMPUTED" type="xs:float"
minOccurs="0" />
<xs:element name="priceChangeCount" type="xs:integer" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SummaryModule" />
<xs:complexType>
<xs:sequence>
<xs:element name="insideLoyalty" type="xs:integer"
minOccurs="0" />
<xs:element name="outsideLoyalty" type="xs:integer"
minOccurs="0" />
<xs:element name="otherLoyalty" type="xs:integer"
minOccurs="0" />
<xs:element name="ppgLoyalty" type="xs:integer"
minOccurs="0" />
<xs:element name="totalTicketLoyalty" type="xs:integer"
minOccurs="0" />
<xs:element name="status" type="xs:string" />
<xs:element name="totalVolume" type="xs:string" />
<xs:element name="totalDollars" type="xs:integer" />
<xs:element name="totalAdj" type="xs:integer" />
<xs:element name="totalLoyaltyDiscount" type="xs:integer"
minOccurs="0" />
<xs:element name="totalDeliveries" type="xs:integer" />
<xs:element name="totalDeliveryCost" type="xs:integer" />
<xs:element name="totalCC" type="xs:float" minOccurs="0" />
<xs:element name="ccRetPortion" type="xs:float"
minOccurs="0" />
<xs:element name="coupons" type="xs:float" minOccurs="0" />
<xs:element name="giftCards" type="xs:float" minOccurs="0" />
<xs:element name="gallonRateFee" type="xs:boolean" />
<xs:element name="dealerCommission" type="xs:float"
minOccurs="0" />
<xs:element name="monthlyCharges" type="xs:integer" />
<xs:element name="monthlyCharges" type="xs:float"
minOccurs="0" />
<xs:element name="totalFuelDiscounts" type="xs:float"
minOccurs="0" />
<xs:element name="carWashDollars" type="xs:integer" />
<xs:element name="carWashNet" type="xs:integer" />
<xs:element name="carWashNet" type="xs:integer"
minOccurs="0" />
<xs:element name="totalAvgPrice" type="xs:integer" />
<xs:element name="creditSubtotal" type="xs:float" />
<xs:element name="debitSubtotal" type="xs:float" />
<xs:element name="bankDraft" type="xs:float" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TotalizerModule" />
<xs:complexType>
<xs:sequence>
<xs:element name="meterIndexCOMPUTED" minOccurs="0" />
<xs:complexType>
<xs:sequence>
<xs:element name="closeDollars" type="xs:float" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="noOpenMeters" type="xs:integer"
minOccurs="0" />
<xs:element name="noCloseMeters" type="xs:integer"
minOccurs="0" />
<xs:element name="meterCount" type="xs:integer" />
<xs:element name="totalLoyaltyPPG" type="xs:float"
minOccurs="0" />
<xs:element name="totalLoyalty" type="xs:float"
minOccurs="0" />
<xs:element name="netTotalLoyaltyVol" type="xs:integer"
minOccurs="0" />
<xs:element name="netTotalLoyaltyDol" type="xs:integer"
minOccurs="0" />
<xs:element name="totalPrepayDisc" type="xs:float" />
<xs:element name="totalPostpayDisc" type="xs:string" />
<xs:element name="iCOMPUTED" minOccurs="0" />
<xs:complexType>
<xs:sequence>
<xs:element name="credAdj" type="xs:integer" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="adjReason" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="xs:string" name="fleetpoint" />
<xs:element type="xs:byte" name="site" />
<xs:element type="xs:int" name="date" />
<xs:element type="xs:string" name="siteName" />
<xs:element type="xs:string" name="corpID" />
<xs:element type="xs:long" name="openTime" />
<xs:element type="xs:string" name="closeTime" />
<xs:element type="xs:string" name="facilityID" />
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>

I don't undersand; the schema start with
<xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ConsignmentDirector" />
<xs:complexType>
<xs:all>
and ends with the reverse
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>


Your help will be greatly appreciated;

Alejandro Barrero
Re: Problem with an XML schema [message #1613746 is a reply to message #1613635] Thu, 12 February 2015 21:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29646
Registered: July 2009
Senior Member
This forum is for help with using the XSD API, not a general XML Schema
help forum. The error you show is purely an XML error so somewhere you
have ill formed XML... Given the bad indentation, that's hard to spot.


On 12.02.2015 21:05, Alejandro Barrero wrote:
> I am getting the error message "Not well formed: The element type
> "xs:all" must be terminated by the matching end-tag "</xs:all>"." at
> line 20 of my schema. The schema is:
> <xs:schema attributeFormDefault="unqualified"
> elementFormDefault="qualified"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:element name="ConsignmentDirector" />
> <xs:complexType>
> <xs:all>
> <xs:element name="CreditCardModule" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="totalDollars" type="xs:integer" />
> <xs:element name="totalNumTrans" type="xs:integer" />
> <xs:element name="cardCount" type="xs:integer" />
> <xs:element name="giftCards" type="xs:integer" />
> <xs:element name="totalFuelDiscounts"
> type="xs:float" />
> <xs:element name="totalNonFuel" type="xs:float" />
> <xs:element name="retPortionTotal" type="xs:hexBinary"
> minOccurs="0" />
> <xs:element name="noOutput" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="DepartmentModule" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="deptCountCOMPUTED" minOccurs="0" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="net" type="xs:float" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="iCOMPUTED" minOccurs="0" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="dealerFeeSum"
> type="xs:float" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="deptCount" type="xs:integer" />
> <xs:element name="customerTotal" type="xs:float" />
> <xs:element name="numTransTotal" type="xs:float" />
> <xs:element name="grossTotal" type="xs:float" />
> <xs:element name="refundsTotal" type="xs:float" />
> <xs:element name="discountsTotal" type="xs:float" />
> <xs:element name="netTotal" type="xs:float" />
> <xs:element name="dealerFeeTotal" type="xs:float" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="InventoryModule" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="list" maxOccurs="unbounded"
> minOccurs="0">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="overShort"
> type="xs:float" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="tankCount" type="xs:integer"
> minOccurs="0" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="NwpNetProductModule" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="prodCount" type="xs:integer" />
> <xs:element name="prodCount" type="xs:hexBinary"
> minOccurs="0" />
> <xs:element name="dealerFeeTotal" type="xs:float"
> minOccurs="0" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="PriceChangeModule" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="totalGalSold" type="xs:integer" />
> <xs:element name="totalAmtDue" type="xs:integer" />
> <xs:element name="totalCommDue" type="xs:integer" />
> <xs:element name="priceChanges" type="xs:hexBinary" />
> <xs:element name="curIdxCOMPUTED" type="xs:float"
> minOccurs="0" />
> <xs:element name="priceChangeCount"
> type="xs:integer" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="SummaryModule" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="insideLoyalty" type="xs:integer"
> minOccurs="0" />
> <xs:element name="outsideLoyalty" type="xs:integer"
> minOccurs="0" />
> <xs:element name="otherLoyalty" type="xs:integer"
> minOccurs="0" />
> <xs:element name="ppgLoyalty" type="xs:integer"
> minOccurs="0" />
> <xs:element name="totalTicketLoyalty"
> type="xs:integer"
> minOccurs="0" />
> <xs:element name="status" type="xs:string" />
> <xs:element name="totalVolume" type="xs:string" />
> <xs:element name="totalDollars" type="xs:integer" />
> <xs:element name="totalAdj" type="xs:integer" />
> <xs:element name="totalLoyaltyDiscount"
> type="xs:integer"
> minOccurs="0" />
> <xs:element name="totalDeliveries"
> type="xs:integer" />
> <xs:element name="totalDeliveryCost"
> type="xs:integer" />
> <xs:element name="totalCC" type="xs:float"
> minOccurs="0" />
> <xs:element name="ccRetPortion" type="xs:float"
> minOccurs="0" />
> <xs:element name="coupons" type="xs:float"
> minOccurs="0" />
> <xs:element name="giftCards" type="xs:float"
> minOccurs="0" />
> <xs:element name="gallonRateFee" type="xs:boolean" />
> <xs:element name="dealerCommission" type="xs:float"
> minOccurs="0" />
> <xs:element name="monthlyCharges" type="xs:integer" />
> <xs:element name="monthlyCharges" type="xs:float"
> minOccurs="0" />
> <xs:element name="totalFuelDiscounts" type="xs:float"
> minOccurs="0" />
> <xs:element name="carWashDollars" type="xs:integer" />
> <xs:element name="carWashNet" type="xs:integer" />
> <xs:element name="carWashNet" type="xs:integer"
> minOccurs="0" />
> <xs:element name="totalAvgPrice" type="xs:integer" />
> <xs:element name="creditSubtotal" type="xs:float" />
> <xs:element name="debitSubtotal" type="xs:float" />
> <xs:element name="bankDraft" type="xs:float" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="TotalizerModule" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="meterIndexCOMPUTED" minOccurs="0" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="closeDollars"
> type="xs:float" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="noOpenMeters" type="xs:integer"
> minOccurs="0" />
> <xs:element name="noCloseMeters" type="xs:integer"
> minOccurs="0" />
> <xs:element name="meterCount" type="xs:integer" />
> <xs:element name="totalLoyaltyPPG" type="xs:float"
> minOccurs="0" />
> <xs:element name="totalLoyalty" type="xs:float"
> minOccurs="0" />
> <xs:element name="netTotalLoyaltyVol"
> type="xs:integer"
> minOccurs="0" />
> <xs:element name="netTotalLoyaltyDol"
> type="xs:integer"
> minOccurs="0" />
> <xs:element name="totalPrepayDisc" type="xs:float" />
> <xs:element name="totalPostpayDisc"
> type="xs:string" />
> <xs:element name="iCOMPUTED" minOccurs="0" />
> <xs:complexType>
> <xs:sequence>
> <xs:element name="credAdj"
> type="xs:integer" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="adjReason" type="xs:string"
> minOccurs="0" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element type="xs:string" name="fleetpoint" />
> <xs:element type="xs:byte" name="site" />
> <xs:element type="xs:int" name="date" />
> <xs:element type="xs:string" name="siteName" />
> <xs:element type="xs:string" name="corpID" />
> <xs:element type="xs:long" name="openTime" />
> <xs:element type="xs:string" name="closeTime" />
> <xs:element type="xs:string" name="facilityID" />
> </xs:all>
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
> I don't undersand; the schema start with
> <xs:schema attributeFormDefault="unqualified"
> elementFormDefault="qualified"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:element name="ConsignmentDirector" />
> <xs:complexType>
> <xs:all>
> and ends with the reverse
> </xs:all>
> </xs:complexType>
> </xs:element>
> </xs:schema>
Previous Topic:XSD Validation Error
Next Topic:Xsd to Ecore Mapping: attributes with simple types
Goto Forum:
  


Current Time: Mon Nov 12 23:12:09 GMT 2018

Powered by FUDForum. Page generated in 0.02338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top