On 4/13/07, Rajarshi Ghosh <[EMAIL PROTECTED]> wrote:

  Thanks for the information. But unfortunately this is not working. When I 
added the lines in my xsd and ran the build file it complained about Invalid 
attribute as below:

I don't know what's wrong with your sample, but xjc:serializable does
work: See the file

   
http://svn.apache.org/viewvc/webservices/jaxme/branches/b0_5/src/test/jaxb/enumeration.xsd

which is a part of the test suite. I forgot to mention, though, that
you need to set the attribute "extension" to "true" when invoking the
xjc task. This can be seen in

   
http://svn.apache.org/viewvc/webservices/jaxme/branches/b0_5/src/test/jaxb/build.xml

(Search for enumeration.xsd.)


One question is what is the correct namespace for xjc? 
"http://java.sun.com/xml/ns/jaxb/xjc"; is not seems to be a valid url.

As the name suggests, a namespace *URI* is an URI, and not an URL. In
other words, it isn't necessarily resolvable by the browser.

Jochen


--
My cats know that I am a loser who goes out for hunting every day
without ever returning as much as a single mouse. Fortunately, I've
got a wife who's a real champ: She leaves the house and returns within
half an hour, carrying whole bags full of meal.

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

Reply via email to