You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Alfonso Focareta <a....@pronetics.it> on 2006/08/02 16:41:08 UTC

Validation Problem "XML object is not of type D=dataroot"

Hi all,
When i try to validate an xml i have this error :
"XML object is not of type D=dataroot"


the problem is in the dataroot tag.
if i modify the name of root xml tag, for example in Dataroot i do not
have the problem.
Why ? Dataroot is a private name ?



This is my xml -->

<?xml version="1.0"?>
<dataroot>
<tipovendita>
    <properties>
        <tipovenditaId>10</tipovenditaId>
        <descrizionevendita>OFFLINE-BUNDLE</descrizionevendita>
    </properties>
</tipovendita>
<tipovendita>
    <properties>
        <tipovenditaId>20</tipovenditaId>
        <descrizionevendita>OFFLINE-UPSELLING</descrizionevendita>
    </properties>
</tipovendita>
<tipovendita>
    <properties>
        <tipovenditaId>30</tipovenditaId>
        <descrizionevendita>ONLINE</descrizionevendita>
    </properties>
</tipovendita>
<tipovendita>
    <properties>
        <tipovenditaId>40</tipovenditaId>
        <descrizionevendita>UNICA</descrizionevendita>
    </properties>
</tipovendita>
</dataroot>


this is my xsd -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:include schemaLocation="./CATCEN_Types_EAI.xsd"/>

<xsd:element name="dataroot">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="tipovendita" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

	<xsd:element name="tipovendita">
		<xsd:annotation>
			<xsd:documentation>Schema Tipo Modalita' di vendita</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="properties">
					<xsd:annotation>
						<xsd:documentation>Proprietà Modalita' di vendita</xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:sequence>
     						<xsd:element name="tipovenditaId" 		type="strNumMinLn1MxLn22"
minOccurs="1" maxOccurs="1"/>
      						<xsd:element name="descrizionevendita" 
type="strMinLn1MxLn200" minOccurs="1" maxOccurs="1"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
</xsd:element>

</xsd:schema>



Thanks to all

Alfonso Focareta


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org