Actually, this is the *only* way you will be able to gain detailed control over the output of the Marshaller, as the static marshal() methods will prevent this from happening.
Werner Guttmann > 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 <[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

