[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: RE: specify a package name - A newbie question
From: "David Remy" <dremy () bea ! com>
Date: 2004-06-25 1:50:48
Message-ID: 4B2B4C417991364996F035E1EE39E2E10190B282 () uskiex01 ! amer ! bea ! com
[Download RAW message or body]
> -----Original Message-----
> From: MIDON ALEXIS [mailto:ALEXIS.MIDON@sgam.com]
> Sent: Wednesday, June 23, 2004 6:16 AM
> To: 'xmlbeans-dev@xml.apache.org'
> Subject: specify a package name - A newbie question
>
>
>
> Hi!
>
> I am new in XMLBean but not in xml binding concept.
> I know JAXB very well but want to give a chance to XMlBean.
>
> My first question is: Is it possible to specify a package name for the
> generated classes? Actually my schemas do not have any namespaces.
Yes, you can use an .xsdconfig file to map nonamespace (or any
namespace) to a specific package. Here is the link to an FAQ on mapping
namespaces to package names.
http://wiki.apache.org/xmlbeans/XmlBeansV1Faq#configPackageName
>
> My first test generated a random package "x12.x1.x7.x10.schemas".
I am surprised that you got this package name. XMLBeans actually uses
JAXB1 conventions for naming (generally). Usually you get the package
'noNamespace' as the default package name.
> This is
> so
> clear...
>
> Thx in advance,
>
> Alexis
>
> -
---------------------------------------------------------------------
> To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic