You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by bchalla <ba...@yahoo.co.in> on 2009/07/01 19:03:54 UTC

ID and IDREF validation error

Hi,
    I am getting a strange problem saying ID not found for IDREF value. In
our schema we declared the element "Qualifier" as a dataType of xsd:ID. And
there is another element as a data type of xsd:IDREF. We have correct values
for ID and IDREF in our xml. When we validate that xml using xmlbean it is
throwing the above exception mentioned. Any solution?

Thanks and Regards,
Bala.
-- 
View this message in context: http://www.nabble.com/ID-and-IDREF-validation-error-tp24293511p24293511.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.

RE: ID and IDREF validation error

Posted by bchalla <ba...@yahoo.co.in>.
Wing Yew,

Schema:
-----------
<xsd:import
namespace="http://www.xmllegal.org/Schema/Court/US/California/2GEFS/BuildingBlocks/Attributes/03/"
schemaLocation="../../../../../../../../../Schema/Court/US/California/2GEFS/BuildingBlocks/Attributes/03/Attributes.xsd"
/>
  <xsd:complexType name="Role">
    <xsd:sequence>
      <xsd:element ref="Name" />
      <xsd:element ref="GenericName" minOccurs="0" />
      <xsd:element ref="Qualifier" />
      <xsd:element ref="Associations" minOccurs="0" />
    </xsd:sequence>
    <xsd:attributeGroup ref="Attributes:Global" />
  </xsd:complexType>
  <xsd:complexType name="Name">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="GenericName">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="Qualifier">
    <xsd:simpleContent>
      <xsd:extension base="xsd:ID">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="Associations">
    <xsd:sequence>
      <xsd:element ref="Association" maxOccurs="unbounded" />
    </xsd:sequence>
    <xsd:attributeGroup ref="Attributes:Global" />
  </xsd:complexType>
  <xsd:complexType name="Association">
    <xsd:sequence>
      <xsd:element ref="Name" />
      <xsd:element ref="GenericName" minOccurs="0" />
      <xsd:element ref="Reference" />
    </xsd:sequence>
    <xsd:attributeGroup ref="Attributes:Global" />
  </xsd:complexType>
  <xsd:complexType name="Reference">
    <xsd:simpleContent>
      <xsd:extension base="xsd:IDREF">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:element name="Role" type="Role" />
  <xsd:element name="Name" type="Name" />
  <xsd:element name="GenericName" type="GenericName" />
  <xsd:element name="Qualifier" type="Qualifier" />
  <xsd:element name="Associations" type="Associations" />
  <xsd:element name="Association" type="Association" />
  <xsd:element name="Reference" type="Reference" />
</xsd:schema>
-------------------------------------------------------------------
Schema 2:

 <xsd:complexType name="Document">
    <xsd:sequence>
      <xsd:element ref="Key" />
      <xsd:element ref="Title" minOccurs="0" />
      <xsd:element ref="Type" minOccurs="0" />
      <xsd:element ref="GenericType" minOccurs="0" />
      <xsd:element ref="Code" minOccurs="0" />
      <xsd:element ref="FiledBys" minOccurs="0" />
      <xsd:element ref="RefersTos" minOccurs="0" />
      <xsd:element ref="File" />
      <xsd:element ref="DataFile" minOccurs="0" />
      <xsd:element ref="FilingStatus" minOccurs="0" />
      <xsd:element ref="FilingStatusMessage" minOccurs="0" />
      <xsd:element ref="Hash" minOccurs="0" />
      <xsd:element ref="Confidential" minOccurs="0" />
      <xsd:element ref="Sealed" minOccurs="0" />
      <xsd:element ref="Extensions" minOccurs="0" />
    </xsd:sequence>
    <xsd:attribute name="Draft" default="false" type="xsd:boolean" />
    <xsd:attribute name="DocumentSource" use="required"
type="DocumentSources" />
    <xsd:attribute name="Exhibit" default="false" type="xsd:boolean" />
    <xsd:attribute name="PrimaryDocumentKey" type="xsd:string" />
    <xsd:attributeGroup ref="Attributes:Global" />
  </xsd:complexType>
  <xsd:complexType name="Key">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string">
        <xsd:attribute name="LegacyKey" type="xsd:string" />
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="Title">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="Type">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="GenericType">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="Code">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="FiledBys">
    <xsd:sequence>
      <xsd:element ref="FiledBy" maxOccurs="unbounded" />
    </xsd:sequence>
    <xsd:attributeGroup ref="Attributes:Global" />
  </xsd:complexType>
  <xsd:complexType name="FiledBy">
    <xsd:simpleContent>
      <xsd:extension base="xsd:IDREF">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="RefersTos">
    <xsd:sequence>
      <xsd:element ref="RefersTo" maxOccurs="unbounded" />
    </xsd:sequence>
    <xsd:attributeGroup ref="Attributes:Global" />
  </xsd:complexType>
  <xsd:complexType name="RefersTo">
    <xsd:simpleContent>
      <xsd:extension base="xsd:IDREF">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="File">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string">
        <xsd:attribute name="Encoding" use="required" type="Encodings" />
        <xsd:attribute name="MIMEType" use="required" type="MIMETypes" />
        <xsd:attribute name="FileSize" use="required" type="xsd:integer" />
        <xsd:attribute name="Namespace" type="xsd:string" />
        <xsd:attribute name="Username" type="xsd:string" />
        <xsd:attribute name="Password" type="xsd:string" />
        <xsd:attribute name="Encrypted" default="false" type="xsd:boolean"
/>
        <xsd:attribute name="Algorithm" type="xsd:string" />
        <xsd:attribute name="Expiration" type="xsd:dateTime" />
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="DataFile">
    <xsd:sequence>
      <xsd:any namespace="##any" processContents="skip" />
    </xsd:sequence>
    <xsd:attributeGroup ref="Attributes:Global" />
  </xsd:complexType>
  <xsd:complexType name="FilingStatus">
    <xsd:simpleContent>
      <xsd:extension base="FilingStatuses">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="Hash">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="Confidential">
    <xsd:simpleContent>
      <xsd:extension base="xsd:boolean">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="Sealed">
    <xsd:simpleContent>
      <xsd:extension base="xsd:boolean">
        <xsd:attributeGroup ref="Attributes:Global" />
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="Extensions">
    <xsd:sequence>
      <xsd:element ref="Extension" maxOccurs="unbounded" />
    </xsd:sequence>
    <xsd:attributeGroup ref="Attributes:Global" />
  </xsd:complexType>
  <xsd:simpleType name="Encodings">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="Base64" />
      <xsd:enumeration value="Link" />
      <xsd:enumeration value="Path" />
      <xsd:enumeration value="Absent" />
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="MIMETypes">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="text/html" />
      <xsd:enumeration value="text/plain" />
      <xsd:enumeration value="text/richtext" />
      <xsd:enumeration value="text/xml" />
      <xsd:enumeration value="image/tiff" />
      <xsd:enumeration value="image/gif" />
      <xsd:enumeration value="image/jpeg" />
      <xsd:enumeration value="image/bmp" />
      <xsd:enumeration value="application/msword" />
      <xsd:enumeration value="application/octet-stream" />
      <xsd:enumeration value="application/pdf" />
      <xsd:enumeration value="Other" />
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="FilingStatuses">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="Received" />
      <xsd:enumeration value="Accepted" />
      <xsd:enumeration value="Pending" />
      <xsd:enumeration value="Rejected" />
      <xsd:enumeration value="Error" />
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="Algorithms">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="SHA-1" />
      <xsd:enumeration value="SHA-256" />
      <xsd:enumeration value="SHA-384" />
      <xsd:enumeration value="SHA-512" />
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="DocumentSources">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="Filer" />
      <xsd:enumeration value="Court" />
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:element name="Document" type="Document" />
  <xsd:element name="Key" type="Key" />
  <xsd:element name="Title" type="Title" />
  <xsd:element name="Type" type="Type" />
  <xsd:element name="GenericType" type="GenericType" />
  <xsd:element name="Code" type="Code" />
  <xsd:element name="FiledBys" type="FiledBys" />
  <xsd:element name="FiledBy" type="FiledBy" />
  <xsd:element name="RefersTos" type="RefersTos" />
  <xsd:element name="RefersTo" type="RefersTo" />
  <xsd:element name="File" type="File" />
  <xsd:element name="DataFile" type="DataFile" />
  <xsd:element name="FilingStatus" type="FilingStatus" />
  <xsd:element name="Hash" type="Hash" />
  <xsd:element name="Confidential" type="Confidential" />
  <xsd:element name="Sealed" type="Sealed" />
  <xsd:element name="Extensions" type="Extensions" />
  <xsd:element name="FilingStatusMessage" type="Message:Message" />
  <xsd:element name="Extension" type="Extension:Extension" />
</xsd:schema>
----------------------------------------------------------------------
xml:
<Filing:Filing>
			<Filing:Key>
				<Key:CourtKey>USCAVenturaSuperior</Key:CourtKey>
				<Key:Year>2009</Key:Year>
				<Key:Month>03</Key:Month>
				<Key:Day>02</Key:Day>
				<Key:Hour>09</Key:Hour>
				<Key:Minute>45</Key:Minute>
				<Key:Second>00</Key:Second>
				<Key:OrganizationKey>EFSP vendor 2</Key:OrganizationKey>
				<Key:Application>IcanEFSP</Key:Application>
				<Key:Version>00.00.001</Key:Version>
				<Key:Suffix>Ventura</Key:Suffix>
			</Filing:Key>
			<Filing:Date>2009-02-17</Filing:Date>
			<Filing:Time>09:45:00</Filing:Time>
			<Filing:Case>
				<Case:Existing>
					<Case:Number>06CS005210 - 7</Case:Number>
				</Case:Existing>
			</Filing:Case>
			<Filing:CourtDetails>
			
<CourtDetails:OrganizationKey>USCAVenturaSuperior</CourtDetails:OrganizationKey>
			
<CourtDetails:CourtKey>USCARedSuperiorCivil-LimitedCULVERCITY</CourtDetails:CourtKey>
				<CourtDetails:Court>
					<Organization:Name>
						<Organization:FullName>Ventura Division</Organization:FullName>
					</Organization:Name>
					<Organization:Addresses>
						<Organization:Address Type="Business Address">
							<Address:Line>
								<Address:StreetNumber>800</Address:StreetNumber>
								<Address:StreetName>South Victoria</Address:StreetName>
								<Address:StreetSuffix>Avenue</Address:StreetSuffix>
							</Address:Line>
							<Address:City>Ventura</Address:City>
							<Address:State>CA</Address:State>
							<Address:County>Ventura</Address:County>
							<Address:PostalCode>93009</Address:PostalCode>
						</Organization:Address>
						<Organization:Address Type="Mailing Address">
							<Address:Line>
								<Address:StreetNumber>800</Address:StreetNumber>
								<Address:StreetName>S. Victoria</Address:StreetName>
								<Address:StreetSuffix>Avenue</Address:StreetSuffix>
							</Address:Line>
							<Address:City>Ventura</Address:City>
							<Address:State>CA</Address:State>
							<Address:County>Ventura</Address:County>
							<Address:PostalCode>93009</Address:PostalCode>
						</Organization:Address>
					</Organization:Addresses>
				</CourtDetails:Court>
				<CourtDetails:Country>US</CourtDetails:Country>
				<CourtDetails:State>CA</CourtDetails:State>
				<CourtDetails:County>Ventura</CourtDetails:County>
				<CourtDetails:CourtType>Superior</CourtDetails:CourtType>
				<CourtDetails:Division>Civil - Limited</CourtDetails:Division>
				<CourtDetails:Location Alias="CTL"
Type="000">Central</CourtDetails:Location>
				<CourtDetails:CourtCode>61</CourtDetails:CourtCode>
			</Filing:CourtDetails>

			<Filing:Filers>
				<Filing:Filer>
					<Filing:Person PersonKey='9900021333'>
						<Person:Name>
							<Person:FullName>
								<Person:FirstName>Santosh</Person:FirstName>
								<Person:LastName>Vaswani11</Person:LastName>
							</Person:FullName>
						</Person:Name>
						<Person:Addresses>
							<Person:Address AddressType="Mailing">
								<Address:Line>
									<Address:StreetNumber>123</Address:StreetNumber>	
									<Address:StreetName>Main</Address:StreetName>
									<Address:StreetSuffix>Street</Address:StreetSuffix>
								</Address:Line>
								<Address:City>Santa Ana</Address:City>
								<Address:State>CA</Address:State>
								<Address:PostalCode>92707</Address:PostalCode>
							</Person:Address>
						</Person:Addresses>
						<Person:Descriptions>
						
<Person:Description><Person:Gender>Male</Person:Gender></Person:Description>
							<Person:Description><Person:Age>30</Person:Age></Person:Description>
						
<Person:Description><Person:DateOfBirth>1979-01-04</Person:DateOfBirth></Person:Description>
							<Person:Description><Person:PlaceOfBirth>Sacramento, CA,
USA</Person:PlaceOfBirth></Person:Description>
						
<!--<Person:Description><Person:DateOfDeath></Person:DateOfDeath></Person:Description>-->
						
<Person:Description><Person:Ethnicity>Asian</Person:Ethnicity></Person:Description>
						
<Person:Description><Person:NativeAmerican>false</Person:NativeAmerican></Person:Description>
						
<Person:Description><Person:Citizenship>American</Person:Citizenship></Person:Description>
						
<Person:Description><Person:LanguagesSpoken>English</Person:LanguagesSpoken></Person:Description>
						
<Person:Description><Person:EyeColor>Brown</Person:EyeColor></Person:Description>
						
<Person:Description><Person:Hair>Black</Person:Hair></Person:Description>
							<Person:Description><Person:ScarsMarksTattoos>
								<Person:ScarsMarksTattoosCode>08989</Person:ScarsMarksTattoosCode>
								<Person:ScarsMarksTattoosType>Tattoo</Person:ScarsMarksTattoosType>
							
<Person:ScarsMarksTattoosLocation>Neck</Person:ScarsMarksTattoosLocation>
							
<Person:ScarsMarksTattoosDescription>Snake</Person:ScarsMarksTattoosDescription>
							</Person:ScarsMarksTattoos></Person:Description>
							<Person:Description><Person:Height>
							<Person:StandardHeight>
								<Person:Feet>5</Person:Feet>
								<Person:Inches>10</Person:Inches>
							</Person:StandardHeight>
							</Person:Height></Person:Description>
							<Person:Description><Person:Weight>
							<Person:StandardWeight>
								<Person:Pounds>200</Person:Pounds>
								<Person:Ounces>0</Person:Ounces>
							</Person:StandardWeight>
							</Person:Weight></Person:Description>
							<Person:Description><Person:MaritalStatus>Never
Married</Person:MaritalStatus></Person:Description>		
						
<Person:Description><Person:ActiveMilitaryDuty>No</Person:ActiveMilitaryDuty></Person:Description>
						
<Person:Description><Person:Religion>Agnostic</Person:Religion></Person:Description>
						
<!--<Person:Description><Person:ViolencePotential></Person:ViolencePotential></Person:Description>-->
						
<Person:Description><Person:Occupation>Doctor</Person:Occupation></Person:Description>
							<Person:Description><Person:BloodType>A
Positive</Person:BloodType></Person:Description>
						
<Person:Description><Person:MedicalCondition>Epilepsy</Person:MedicalCondition></Person:Description>
						
<Person:Description><Person:HasSpecialNeeds>false</Person:HasSpecialNeeds></Person:Description>
						
<Person:Description><Person:DNALocus>D3S1358</Person:DNALocus></Person:Description>
							<Person:Description><Person:OtherCharacteristic>
								<Person:OtherCharacteristicName>Food
Prefrence</Person:OtherCharacteristicName>
							
<Person:OtherCharacteristicValue>Kosher</Person:OtherCharacteristicValue>
							
<Person:OtherCharacteristicDescription>Kosher</Person:OtherCharacteristicDescription>		
							</Person:OtherCharacteristic></Person:Description>
						</Person:Descriptions>
						<Person:Roles>
							<Person:Role>
								<Role:Name>Plaintiff</Role:Name>
								<Role:Qualifier>Filer001</Role:Qualifier>
							</Person:Role>
						</Person:Roles>
					</Filing:Person>
				</Filing:Filer>
				<Filing:Filer>
					<Filing:Person PersonKey='9900009300'>
						<Person:Name>
							<Person:FullName>
							<Person:FirstName>bala</Person:FirstName>
							<Person:LastName>Chall</Person:LastName>
							</Person:FullName>
						</Person:Name>
						<Person:Descriptions>
						
<Person:Description><Person:Gender>Male</Person:Gender></Person:Description>
							<Person:Description><Person:Age>30</Person:Age></Person:Description>
						
<Person:Description><Person:DateOfBirth>1979-01-04</Person:DateOfBirth></Person:Description>
							<Person:Description><Person:PlaceOfBirth>Sacramento, CA,
USA</Person:PlaceOfBirth></Person:Description>
						
<Person:Description><Person:Ethnicity>Asian</Person:Ethnicity></Person:Description>
						
<Person:Description><Person:NativeAmerican>false</Person:NativeAmerican></Person:Description>
						
<Person:Description><Person:Citizenship>American</Person:Citizenship></Person:Description>
						
<Person:Description><Person:LanguagesSpoken>English</Person:LanguagesSpoken></Person:Description>
						
<Person:Description><Person:EyeColor>Brown</Person:EyeColor></Person:Description>
						
<Person:Description><Person:Hair>Black</Person:Hair></Person:Description>
							<Person:Description><Person:ScarsMarksTattoos>
								<Person:ScarsMarksTattoosCode>08989</Person:ScarsMarksTattoosCode>
								<Person:ScarsMarksTattoosType>Tattoo</Person:ScarsMarksTattoosType>
							
<Person:ScarsMarksTattoosLocation>Neck</Person:ScarsMarksTattoosLocation>
							
<Person:ScarsMarksTattoosDescription>Snake</Person:ScarsMarksTattoosDescription>
							</Person:ScarsMarksTattoos></Person:Description>
							<Person:Description><Person:Height>
							<Person:StandardHeight>
								<Person:Feet>5</Person:Feet>
								<Person:Inches>10</Person:Inches>
							</Person:StandardHeight>
							</Person:Height></Person:Description>
							<Person:Description><Person:Weight>
							<Person:StandardWeight>
								<Person:Pounds>200</Person:Pounds>
								<Person:Ounces>0</Person:Ounces>
							</Person:StandardWeight>
							</Person:Weight></Person:Description>
						</Person:Descriptions>
						<Person:Roles>
							<Person:Role>
								<Role:Name>Plaintiff</Role:Name>
								<Role:Qualifier>Filer002</Role:Qualifier>
							</Person:Role>
						</Person:Roles>
					</Filing:Person>
				</Filing:Filer>
			</Filing:Filers>
	
			<Filing:People>
				<Filing:Person>
					<Person:Name>
						<Person:FullName>
							<Person:FirstName>Vamshi</Person:FirstName>
							<Person:LastName>baraju</Person:LastName>
						</Person:FullName>
					</Person:Name>
					<Person:Addresses>
						<Person:Address AddressType="Mailing">
							<Address:Line>
								<Address:StreetNumber>123</Address:StreetNumber>	
								<Address:StreetName>Main</Address:StreetName>
								<Address:StreetSuffix>Avenue</Address:StreetSuffix>
							</Address:Line>	
							<Address:City>Santa Ana</Address:City>
							<Address:State>CA</Address:State>
							<Address:PostalCode>92707</Address:PostalCode>
						</Person:Address>
					</Person:Addresses>
					<Person:Descriptions>
						
<Person:Description><Person:Gender>Male</Person:Gender></Person:Description>
							<Person:Description><Person:Age>45</Person:Age></Person:Description>
						
<Person:Description><Person:Ethnicity>Asian</Person:Ethnicity></Person:Description>
						
<Person:Description><Person:NativeAmerican>false</Person:NativeAmerican></Person:Description>
						
<Person:Description><Person:Citizenship>American</Person:Citizenship></Person:Description>
						
<Person:Description><Person:LanguagesSpoken>Dutch</Person:LanguagesSpoken></Person:Description>
					</Person:Descriptions>
					<Person:Roles>
						<Person:Role>
							<Role:Name>Plaintiff</Role:Name>
							<Role:Qualifier>Filer003</Role:Qualifier>
						</Person:Role>
					</Person:Roles>
					
				</Filing:Person>
				
				<Filing:Person>
					<Person:Name>
						<Person:FullName>
						<Person:FirstName>Sandeep</Person:FirstName>
						<Person:LastName>Nama</Person:LastName>
						</Person:FullName>
					</Person:Name>
					<Person:Descriptions>
						
<Person:Description><Person:Gender>Male</Person:Gender></Person:Description>
							<Person:Description><Person:Age>31</Person:Age></Person:Description>
						
<Person:Description><Person:Ethnicity>Asian</Person:Ethnicity></Person:Description>
						
<Person:Description><Person:NativeAmerican>false</Person:NativeAmerican></Person:Description>
						
<Person:Description><Person:Citizenship>American</Person:Citizenship></Person:Description>
						</Person:Descriptions>
					<Person:Roles>
						<Person:Role>
							<Role:Name>Defendant</Role:Name>
							<Role:Qualifier>Defendant001</Role:Qualifier>
						</Person:Role>
					</Person:Roles>

				</Filing:Person>
			</Filing:People>
			
			<Filing:LeadDocuments>
				<Filing:LeadDocument DocumentSource="Filer">
					<Document:Key>sc100_233_2007162444311.pdf</Document:Key>
					<Document:Title>Answer</Document:Title>
					<Document:Type>Answer</Document:Type>
					<Document:GenericType>First Papers</Document:GenericType>
					<Document:Code>F3</Document:Code>
					<Document:FiledBys>
					<Document:FiledBy>Filer001</Document:FiledBy>
					<Document:FiledBy>Filer002</Document:FiledBy>
					<Document:FiledBy>Filer003</Document:FiledBy>
					</Document:FiledBys>
					<Document:RefersTos>
					<Document:RefersTo>Defendant001</Document:RefersTo>
					</Document:RefersTos>
					<Document:file/>
				</Filing:LeadDocument>
			</Filing:LeadDocuments>
		</Filing:Filing>

----------------------------------------------------------------------
Java Code:
eDF = EnvelopeDocument.Factory.parse(xmlFile);
if ( !eDF.validate() ) {
					
					/*for (Iterator it = errorList.iterator(); it.hasNext();) {
						com.bea.xml.XmlError error = (com.bea.xml.XmlError)it.next();
						String errorToLog = error.getMessage();
						log.error("SEVERITY LEVEL "+error.getSeverity());
						// getting around ID Idref errors
						///if (errorToLog.indexOf("IDRef")!= -1){
							///valid = true;
						///}else {
							valid = false;
						
confirmationMessageElement.addNewMessage().addNewSubject().setStringValue(errorToLog);
							log.info(sbuilder.toString());
							throw new XmlException(errorToLog);
						///}
					}*/
					valid = false;
				
confirmationMessageElement.addNewMessage().addNewSubject().setStringValue("Validation
Failed");
					confirmationElement.setMessages(confirmationMessageElement);
					log.info(sbuilder.toString());
					throw new XmlException("Validation Failed");
					
				}


Thank you


Wing Yew Poon-2 wrote:
> 
> Bala,
> can you please post your schema, xml instance, and java code?
> Thanks,
> Wing Yew
> 
>   _____  
> 
> From: bchalla [mailto:balu_challa@yahoo.co.in] 
> Sent: Wednesday, July 01, 2009 10:04 AM
> To: user@xmlbeans.apache.org
> Subject: ID and IDREF validation error
> 
> 
> Hi, I am getting a strange problem saying ID not found for IDREF value. In
> our schema we declared the element "Qualifier" as a dataType of xsd:ID.
> And there is another element as a data type of xsd:IDREF. We have correct
> values for ID and IDREF in our xml. When we validate that xml using
> xmlbean it is throwing the above exception mentioned. Any solution? Thanks
> and Regards, Bala. 
> 
>   _____  
> 
> View this message in context: HYPERLINK
> "http://www.nabble.com/ID-and-IDREF-validation-error-tp24293511p24293511.html"ID
> and IDREF validation error
> Sent from the HYPERLINK
> "http://www.nabble.com/Xml-Beans---User-f349.html"Xml Beans - User mailing
> list archive at Nabble.com.
> 
> 

-- 
View this message in context: http://www.nabble.com/ID-and-IDREF-validation-error-tp24293511p24295689.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.


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


RE: ID and IDREF validation error

Posted by Wing Yew Poon <wi...@oracle.com>.
Bala,
can you please post your schema, xml instance, and java code?
Thanks,
Wing Yew

  _____  

From: bchalla [mailto:balu_challa@yahoo.co.in] 
Sent: Wednesday, July 01, 2009 10:04 AM
To: user@xmlbeans.apache.org
Subject: ID and IDREF validation error


Hi, I am getting a strange problem saying ID not found for IDREF value. In our schema we declared the element "Qualifier" as a dataType of xsd:ID. And there is another element as a data type of xsd:IDREF. We have correct values for ID and IDREF in our xml. When we validate that xml using xmlbean it is throwing the above exception mentioned. Any solution? Thanks and Regards, Bala. 

  _____  

View this message in context: HYPERLINK "http://www.nabble.com/ID-and-IDREF-validation-error-tp24293511p24293511.html"ID and IDREF validation error
Sent from the HYPERLINK "http://www.nabble.com/Xml-Beans---User-f349.html"Xml Beans - User mailing list archive at Nabble.com.