Hi all-

Hopefully this isn't redundant, but I believe if you use the
setNamespaceMapping method on a Marshaller object (i.e. using the
NON-static marshal method), the namespace mapping will be declared at
the top level and any child elements that use that namespace will not
redeclare the prefix (in other words no xmlns attribute).

HTH,
Stephen


On 3/23/07, Werner Guttmann <[EMAIL PROTECTED]> wrote:
Again, this is not required, as Castor (during marshalling) will be able (given 
that descriptor classes are available) to control the use of namespaces 
according to your XML schema definition.

Werner

> -----Ursprüngliche Nachricht-----
> Von: Uday Kari [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 23. März 2007 03:16
> An: [email protected]
> Betreff: RE: [castor-user] Supress Namespaces
>
> B.  (prefer this) one of us extends the API within
> org.exolab.castor.xml.Marshaller to provide method
> suppressNamespacesInAllChildElements() or
> showNamespacesInTopElementOnly()

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to