> -----Original Message-----
> From: Uday Kari [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 22, 2007 6:52 PM
> To: [email protected]
> Subject: [castor-user] Supress Namespaces
> 
> Praveen:  Thanks for the prompt response!  Indeed...it works.  
> 
> To clarify, you mean call 
> Marshaller.setSuppressNamespaces(TRUE), not false, while 
> marshalling. The only catch is that I wanted namespaces to 
> show up in the top-most level element "gauges" but not in any 
> of its child elements.  By suppressing namespace, it takes it 
> out for even the top most elements...o well, it is a case of 
> cosmetics anyway.  

Generally it's a cosmetic issue, yes.  In certain circumstances, it
might have a performance impact (having the xmlns in every element), but
I wouldn't try to solve this problem unless you're really sure (by
measuring) that it causes a problem.

> ________________________________________
> From: Praveen Jani [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 22, 2007 3:07 PM
> To: [email protected]
> Subject: Re: [castor-user] Empty xmlns attribute in 
> marshalled XML (should be easy)
> 
> You can call Marshaller.setSuppressNamespaces(false) while 
> marshalling.
> 
> Uday Kari <[EMAIL PROTECTED]> wrote: 
> Hi folks,
> 
> My castor spawning XML Schema Definition (XSD) is: 
> 
> -- http://www.pdc.org/pride/xmlschema/wls.xsd 
> 
> 
> The marshaled XML (using class.method = Gauges.marshal()) is 
> posted at 
> 
> -- http://www.pdc.org/pride/ptwc/stations.xml 
> 
> BURING QUESTION: 
> 
> Why do the wls elements have an empty xmlns attribute (and 
> how do I get rid of it)? 
> 
> Hopefully simple enough question for my first test post to 
> the user forum!
> 
> Regards,
> 
> Uday Kari
> Pacific Disaster Center
> 
> ---------------------------------------------------------------------
> 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
> 
> 

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

    http://xircles.codehaus.org/manage_email

Reply via email to