Yup I meant TRUE. It was that classroom situation where you want to raise your hand and say "Oh I know", "I know" ... :-)
Uday Kari <[EMAIL PROTECTED]> wrote: 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. And, thanks, I learnt something new today. Previously, I was simply doing the following (pseudo-code): gauges.marshal(out) Now I do the following instead...this does seem to give a lot more control on the XML that is being spit out...thanks, again for the tip... Marshaller marshaller = new org.exolab.castor.xml.Marshaller (out); marshaller.marshal(gauges); Uday ________________________________________ 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 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

