You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Tom Condon <to...@vrtx.com> on 2003/11/11 21:14:06 UTC

Need some help with validation error...

I am trying to get some xml to validate.  I have a schema that includes 
a schema and uses my own namespace  I am getting the following error:

error: Element not allowed: 
clusteredPharmacophoreDescriptions@http://www.vpharm.com/hypervis/xml
error: Expected element(s)


The schema I use to define this document is:

<?xml version="1.0" encoding="UTF-8"?>
	<xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
		xmlns:hv="http://www.vpharm.com/hypervis/xml"
		xmlns:xs="http://www.w3.org/2001/XMLSchema"
		elementFormDefault="qualified">
	<xs:include schemaLocation="HyperVisTypes.xsd"/>
	<xs:element name="clusteredPharmacophoreDescriptions" 
type="hv:ClusteredPharmacophoreDescriptionList"/>
</xs:schema>

The complex type I am using is defined in HyperVisTypes.xsd, the 
beginning of looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
	xmlns:hv="http://www.vpharm.com/hypervis/xml"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified">


The beginning of the xml document looks like this:

<hv:clusteredPharmacophoreDescriptions  
xmlns:xs="http://www.w3.org/2001/XMLSchema"       
xmlns:hv="http://www.vpharm.com/hypervis/xml">
	<hv:clusteredPharmacophoreDescription>
		<hv:clusteredBits>
			<hv:clusteredBit>7317823</hv:clusteredBit>
			<hv:clusteredBit>7317371</hv:clusteredBit>
			<hv:clusteredBit>7317303</hv:clusteredBit>

Any ideas of what I am doing wrong?

Thanks,

Tom Condon

Re: Need some help with validation error...

Posted by Tom Condon <to...@vrtx.com>.
My bad...  I was using 
ClusteredPharmacoreDescriptions.Factory.parse(...) instead of 
ClusteredPharmacoreDescriptionsDocument.Factory.parse(...).  Thanks for 
the help.  Now I just have to fix my xml!
On Nov 11, 2003, at 4:03 PM, David Bau wrote:

> Hi Tom,
>
> Not sure, looks OK, though the schema and example are incomplete so 
> it's
> hard to know for 100% sure.
>
> How are you loading your document - is it via
> ClusteredPharmacoreDescriptionsDocument.Factory.parse(...), or are you 
> using
> the command-line validator?  Are the schemas compiled or loaded 
> dynamically?
>
> David
> ----- Original Message -----
> From: Tom Condon
> To: xmlbeans-user@xml.apache.org
> Sent: Tuesday, November 11, 2003 3:14 PM
> Subject: [xmlbeans-user] Need some help with validation error...
>
>
> I am trying to get some xml to validate. I have a schema that includes 
> a
> schema and uses my own namespace I am getting the following error:
>
> error: Element not allowed:
> clusteredPharmacophoreDescriptions@http://www.vpharm.com/hypervis/xml
> error: Expected element(s)
>
>
> The schema I use to define this document is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
> xmlns:hv="http://www.vpharm.com/hypervis/xml"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified">
> <xs:include schemaLocation="HyperVisTypes.xsd"/>
> <xs:element name="clusteredPharmacophoreDescriptions"
> type="hv:ClusteredPharmacophoreDescriptionList"/>
> </xs:schema>
>
> The complex type I am using is defined in HyperVisTypes.xsd, the 
> beginning
> of looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
> xmlns:hv="http://www.vpharm.com/hypervis/xml"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified">
>
>
> The beginning of the xml document looks like this:
>
> <hv:clusteredPharmacophoreDescriptions
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:hv="http://www.vpharm.com/hypervis/xml">
> <hv:clusteredPharmacophoreDescription>
> <hv:clusteredBits>
> <hv:clusteredBit>7317823</hv:clusteredBit>
> <hv:clusteredBit>7317371</hv:clusteredBit>
> <hv:clusteredBit>7317303</hv:clusteredBit>
>
> Any ideas of what I am doing wrong?
>
> Thanks,
>
> Tom Condon
>
>
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
>


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Re: Need some help with validation error...

Posted by Tom Condon <to...@vrtx.com>.
My bad...  I was using 
ClusteredPharmacoreDescriptions.Factory.parse(...) instead of 
ClusteredPharmacoreDescriptionsDocument.Factory.parse(...).  Thanks for 
the help.  Now I just have to fix my xml!
On Nov 11, 2003, at 4:03 PM, David Bau wrote:

> Hi Tom,
>
> Not sure, looks OK, though the schema and example are incomplete so 
> it's
> hard to know for 100% sure.
>
> How are you loading your document - is it via
> ClusteredPharmacoreDescriptionsDocument.Factory.parse(...), or are you 
> using
> the command-line validator?  Are the schemas compiled or loaded 
> dynamically?
>
> David
> ----- Original Message -----
> From: Tom Condon
> To: xmlbeans-user@xml.apache.org
> Sent: Tuesday, November 11, 2003 3:14 PM
> Subject: [xmlbeans-user] Need some help with validation error...
>
>
> I am trying to get some xml to validate. I have a schema that includes 
> a
> schema and uses my own namespace I am getting the following error:
>
> error: Element not allowed:
> clusteredPharmacophoreDescriptions@http://www.vpharm.com/hypervis/xml
> error: Expected element(s)
>
>
> The schema I use to define this document is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
> xmlns:hv="http://www.vpharm.com/hypervis/xml"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified">
> <xs:include schemaLocation="HyperVisTypes.xsd"/>
> <xs:element name="clusteredPharmacophoreDescriptions"
> type="hv:ClusteredPharmacophoreDescriptionList"/>
> </xs:schema>
>
> The complex type I am using is defined in HyperVisTypes.xsd, the 
> beginning
> of looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
> xmlns:hv="http://www.vpharm.com/hypervis/xml"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified">
>
>
> The beginning of the xml document looks like this:
>
> <hv:clusteredPharmacophoreDescriptions
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:hv="http://www.vpharm.com/hypervis/xml">
> <hv:clusteredPharmacophoreDescription>
> <hv:clusteredBits>
> <hv:clusteredBit>7317823</hv:clusteredBit>
> <hv:clusteredBit>7317371</hv:clusteredBit>
> <hv:clusteredBit>7317303</hv:clusteredBit>
>
> Any ideas of what I am doing wrong?
>
> Thanks,
>
> Tom Condon
>
>
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
>


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Re: Need some help with validation error...

Posted by David Bau <da...@bea.com>.
Hi Tom,

Not sure, looks OK, though the schema and example are incomplete so it's
hard to know for 100% sure.

How are you loading your document - is it via
ClusteredPharmacoreDescriptionsDocument.Factory.parse(...), or are you using
the command-line validator?  Are the schemas compiled or loaded dynamically?

David
----- Original Message ----- 
From: Tom Condon
To: xmlbeans-user@xml.apache.org
Sent: Tuesday, November 11, 2003 3:14 PM
Subject: [xmlbeans-user] Need some help with validation error...


I am trying to get some xml to validate. I have a schema that includes a
schema and uses my own namespace I am getting the following error:

error: Element not allowed:
clusteredPharmacophoreDescriptions@http://www.vpharm.com/hypervis/xml
error: Expected element(s)


The schema I use to define this document is:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
xmlns:hv="http://www.vpharm.com/hypervis/xml"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:include schemaLocation="HyperVisTypes.xsd"/>
<xs:element name="clusteredPharmacophoreDescriptions"
type="hv:ClusteredPharmacophoreDescriptionList"/>
</xs:schema>

The complex type I am using is defined in HyperVisTypes.xsd, the beginning
of looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
xmlns:hv="http://www.vpharm.com/hypervis/xml"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">


The beginning of the xml document looks like this:

<hv:clusteredPharmacophoreDescriptions
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:hv="http://www.vpharm.com/hypervis/xml">
<hv:clusteredPharmacophoreDescription>
<hv:clusteredBits>
<hv:clusteredBit>7317823</hv:clusteredBit>
<hv:clusteredBit>7317371</hv:clusteredBit>
<hv:clusteredBit>7317303</hv:clusteredBit>

Any ideas of what I am doing wrong?

Thanks,

Tom Condon


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Re: Need some help with validation error...

Posted by David Bau <da...@bea.com>.
Hi Tom,

Not sure, looks OK, though the schema and example are incomplete so it's
hard to know for 100% sure.

How are you loading your document - is it via
ClusteredPharmacoreDescriptionsDocument.Factory.parse(...), or are you using
the command-line validator?  Are the schemas compiled or loaded dynamically?

David
----- Original Message ----- 
From: Tom Condon
To: xmlbeans-user@xml.apache.org
Sent: Tuesday, November 11, 2003 3:14 PM
Subject: [xmlbeans-user] Need some help with validation error...


I am trying to get some xml to validate. I have a schema that includes a
schema and uses my own namespace I am getting the following error:

error: Element not allowed:
clusteredPharmacophoreDescriptions@http://www.vpharm.com/hypervis/xml
error: Expected element(s)


The schema I use to define this document is:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
xmlns:hv="http://www.vpharm.com/hypervis/xml"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:include schemaLocation="HyperVisTypes.xsd"/>
<xs:element name="clusteredPharmacophoreDescriptions"
type="hv:ClusteredPharmacophoreDescriptionList"/>
</xs:schema>

The complex type I am using is defined in HyperVisTypes.xsd, the beginning
of looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.vpharm.com/hypervis/xml"
xmlns:hv="http://www.vpharm.com/hypervis/xml"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">


The beginning of the xml document looks like this:

<hv:clusteredPharmacophoreDescriptions
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:hv="http://www.vpharm.com/hypervis/xml">
<hv:clusteredPharmacophoreDescription>
<hv:clusteredBits>
<hv:clusteredBit>7317823</hv:clusteredBit>
<hv:clusteredBit>7317371</hv:clusteredBit>
<hv:clusteredBit>7317303</hv:clusteredBit>

Any ideas of what I am doing wrong?

Thanks,

Tom Condon


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/