I am no expert on XMLBeans, however, I would think that you would need an emement type in order to generate the jar file.
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="test" type="testType"> <xs:annotation> <xs:documentation>This is the class</xs:documentation> </xs:annotation> </xs:element> <xs:complexType name="testType"> <xs:sequence> <xs:element name="testField" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema> Hope this helps, Rhys -----Original Message----- From: be_tnt [mailto:[EMAIL PROTECTED] Sent: May 24, 2006 10:59 AM To: [email protected] Subject: [XMLBeans v2.0] Error: uses or overrides deprecated API Hello, I just started to use XMLBeans and got my first error when trying to generate my jar file from a dummy XML schema. The schema is the following: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="test" type="xs:string"> <xs:annotation> <xs:documentation>this is a test</xs:documentation> </xs:annotation> </xs:element> </xs:schema> So not too complicate ;o) The compilation command I used: scomp -d class\ -out lib\test.jar test.xsd -verbose -javasource 1.5 I got those 2 messages: Note: <TEMP PATH>\xbean60046.d\src\noNamespace\impl\TestDocumentImpl.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. The TEMP PATH has been added by myself to make those message more readable. When I tried to add the -Xlint:deprecation, I got an unrecognised option message. Any idea?? -- View this message in context: http://www.nabble.com/-XMLBeans+v2.0-+Error%3A+uses+or+overrides+deprecated+API-t1675561.html#a4542846 Sent from the Xml Beans - User forum at Nabble.com. --------------------------------------------------------------------- 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]

