Hi Patrick I think you mean to refer to xs:ID where xs refers to namespace http://www.w3.org/2001/XMLSchema? (The xml prefix is reserved. When used it refers to http://www.w3.org/XML/1998/namespace but the only attributes declared are xml:space and xml:lang).
If so then instead of <xs:attribute ref="xml:id"/> I think you would need something like: <xs:attribute name="id" type="xs:ID"/> The name of such an attribute does not have to be "id" - it can be whatever you like and you will get an appropriate setter on the generated XmlBean. If you use "id" then you should get a setId() setter. If you use "xmlId" you'll get a setXmlId() setter. Cheers, Lawrence > -----Original Message----- > From: Beagan, Patrick [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 12, 2005 11:41 AM > To: [email protected] > Subject: xml:id questions > > Is xml:id supported in xmlbeans 2.0.0? scomp throws errors when this > element is encountered. > > > In my gsa.xsd I have : > > <xs:attribute ref="xml:id"/> > > Executing : scomp -noupa -out myjar.jar gsa.xsd give me the error: > gsa.xsd:93: error: src-resolve: attribute > '[EMAIL PROTECTED]://www.w3.org/XML/1998/namespace' not found. > > > This is strange to me because the namespace in the schema refers to > http://www.w3.org/2001/XMLSchema . If I leave this attribute out, > scomp works properly. But I need my xmlbeans objects to have a > setXmlId() method available, which it is not. Any ideas? > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

