should do no harm. compilation succeeded anyway. this has nothing to do with xmlbeans but is a warning issued by java 1.5 because of "deprecated" api usage (java 1.4 style) in classes generated by xmlbeans.
--- Rhys Parry <[EMAIL PROTECTED]> wrote: > 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] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

