You can try setting:
marshaller.setMarshalExtendedType(false); before you marshal. --Keith "Schneeman, Brent" wrote: > > We've already locked down to 0.939 for this release of our product. For the > next release, I may be able to move to a later version. > > > -----Original Message----- > > From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 17, 2002 1:17 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [castor-dev] Suppressing xsi:type in marshalled output > > > > > > Hi Brent, > > > > Have you tried the CVS version? Huge modifications concerning > > 'xsi-type' > > have been made. > > > > Arnaud > > > > > -----Original Message----- > > > From: Schneeman, Brent [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, April 17, 2002 11:05 AM > > > To: [EMAIL PROTECTED] > > > Subject: [castor-dev] Suppressing xsi:type in marshalled output > > > > > > Hi, this is likely a beginner question. > > > > > > Castor 0.939, JDK1.3.1_01 > > > > > > My application receives XML documents from various sources, > > processes > > > them, > > > and sends XML responses. One of those responses needs to include a > > KeyInfo > > > element, as defined in the xmldsig schema located at > > > http://www.w3.org/2000/09/xmldsig (the response document's schema > > > references > > > the xmldsig schema). This is a complex type element. > > > > > > Whenever the marshaller renders the XML bytes, I invariably get an > > > attribute > > > called xsi:type which is assigned the Java class that represents the > > > KeyInfo > > > object. The inclusion of this attribute causes the reciever of the > > > document > > > to fail XML validation. > > > > > > Any way to suppress the xsi:type? > > > > > > Thanks > > > -Brent Schneeman > > > > > > ----------------------------------------------------------- > > > If you wish to unsubscribe from this mailing, send mail to > > > [EMAIL PROTECTED] with a subject of: > > > unsubscribe castor-dev > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send mail to > > [EMAIL PROTECTED] with a subject of: > > unsubscribe castor-dev > > > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
