Hi Jacob,

Thanks for the quick reply.
Is an enumeration of a 'token' not a valid type?
For example:

    <xs:attribute name="primaryKey" default="false">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>

I looked at: 
http://xmlbeans.apache.org/docs/2.0.0/guide/conJavaTypesGeneratedFromUserDerived.html
My xsd seems to match with the docs regarding enumeration there.

Is it possible that xmlbeans runs across an attribute without a type and just 
stops there when generating the binding code? I'll try fixing the types that 
are missing and re-run scomp to see what happens.

Thanks,

Ty



----- Original Message ----
From: Jacob Danner <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, December 6, 2007 2:10:31 PM
Subject: Re: xmlbeans not able to access some attributes


A quick glance at the schema and I can make a guess at the issue here. A lot of 
your attributes are nothing more than names, they need types associated with 
them. 
So instead of:

<xs:attribute name="foo" />
try
<xs:attribute name="foo" type="xs:string" />

-jacobd  


On Dec 6, 2007 9:47 AM, tyju tiui <
[EMAIL PROTECTED]> wrote:

Hi,

I'm trying to create a nice helper for building Torque database definition 
files.
I've created an xsd from their dtd and built my jar using scomp with the 
"-javasource 1.5" option.


The problem is, I'm unable to set / get attributes of a column other than the 
name.
I should be able to access type, primarykey, required, etc... attributes of a 
column element?

Attached is my xsd ... any help would be greatly appreciated.


Thanks,

Ty






      Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]









      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to