Thanks - it worked, but I had to fix my handler after this change. 

Marshaller stopped printing those things, but at the same time unmarshaller stopped 
working. 
When I looked into my handler, I saw that in the convertUponSet, the arg0 argument was 
no longer a String, now it was a AnyNode object ;-) I used getStringValue() to get a 
String representation.

Thanks,

Michal

-- 
Michal Grzemowski
Programmer/Analyst

Sabre Polska Sp z o.o.
ul. Cystersow 13A
31-553 Krakow, Poland

tel: +48 12 295 9056
fax: +48 12 295 9001
----------------------


> -----Original Message-----
> From: Martin Davidsson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 08, 2004 11:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-user] Why CASTOR prints xsi:type and xmlns:xsi
> attributes when custom field handler is used?
> 
> 
> 
> Try Marshaller.setSuppressXSIType(boolean suppressXSIType) for the 
> xsi:type attribute. Not sure about the other one.
> 
> -- Martin
> 
> On Jun 8, 2004, at 12:35 PM, Grzemowski, Michal wrote:
> 
> > Hi,
> >
> > I wanted to say that I really appreciate your patience, I have yet 
> > another newbe question I guess.
> >
> > How can I prevent CASTOR from adding the following attributes:
> >     xsi:type="java:java.lang.String"
> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > when using custom handler for a field? It does not do so for other 
> > fields - only those with custom handlers.
> >
> > Thanks again,
> >
> > Michal Grzemowski
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> >         unsubscribe castor-user
> 
> 
> 
> ----------------------------------------------------------- 
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user
> 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to