Hi Jacob, I actually didn't choose, I let trang build my xsd from the DTD provided by Apache. I tried quickly updating the xsd to be sure there were no elements without a type and still no luck? I've attached the updated xsd for reference.
I noticed there are are a few methods for dealing with Restrictions and Transformations and I have no idea what those are for ... not sure if that is relevant or not. Do you have any other ideas? Thanks, Ty ----- Original Message ---- From: Jacob Danner <[EMAIL PROTECTED]> To: user@xmlbeans.apache.org Sent: Thursday, December 6, 2007 2:47:42 PM Subject: Re: xmlbeans not able to access some attributes Token is a valid type, although I'm curious why in this case you haven't chosen to make it a boolean On Dec 6, 2007 11:41 AM, tyju tiui <[EMAIL PROTECTED] > wrote: 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: user@xmlbeans.apache.org 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 homepage. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
database.xsd
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]