Hmm, looking at the code generator, I can tell that a content element
(whether element or attribute) of type <xsd:QName> is mapped to a Java
member of type 'java.lang.String'.
In other words, for an element definition as follows ...
<xsd:element name="x" type="xsd:QName"
the Castor code generator will create a Java instance variable ...
private String x;
where x will be able to store content such as 'po:Address'. With this in
mind, you should be able to use a custom FieldHandler to convert this to
a QName representation.
I hope this helps.
Werner
Ralf Joachim wrote:
> Forwarding this question as the user has problems to send to list even
> if he is subscribed.
>
>
> -------- Original-Nachricht --------
> Betreff: Mapping localpart+namespace into qname?
> Datum: Thu, 07 Dec 2006 11:50:17 +0100
> Von: Christian Raschka <[EMAIL PROTECTED]>
> An: [EMAIL PROTECTED]
>
> Hi everybody,
>
> is it possible to map <name xmlns:x="http://acme.com">foo</name> into a
> javax.xml.namespace.QName field "name", where localpart is "foo" and the
> namespace is "http://acme.com"?
> The problem is, that the "x" could be freely chosen and is therefore not
> static.
>
> If yes, is it possible with a mapping
> file (not directly with the source code generator) and how!
>
> Thank you for your help,
> Christian
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email