Title: RE: [castor-dev] Suppressing xsi:type in marshalled output

Yes, use setMarshalExtendedType(false) on the Marshaller object

-----Original Message-----
From: Schneeman, Brent [mailto:[EMAIL PROTECTED]]
Sent: 17 April 2002 19:05
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

Reply via email to