Werner, That did the trick. The only catch was that I had to create a Marshaller. Prior to that, I was just using the marshal method on the generated class.
Ron On Thu, Mar 20, 2008 at 9:28 AM, Werner Guttmann <[EMAIL PROTECTED]> wrote: > Ronald, > > you can always use > > org.exolab.castor.xml.Marshaller.setNoNamespaceSchemaLocation(String) > > to achieve the desired. > > Regards > Werner > > > Ronald R. DiFrango wrote: > > All, > > > > Just prior to me Marshalling a request to the service that I am passing > > my XML to, I need to add a custom noNamespaceSchemaLocation attribute at > > the top level. For example, the currently generated XML is something > like: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <CreditApplicationResponse> > > <Status>Dummy</Status> > > <Error> > > <text>Dummy</text> > > </Error> > > <ApplicationLabel>dummy</ApplicationLabel> > > </CreditApplicationResponse> > > > > and I need it to be > > > > <?xml version="1.0" encoding="UTF-8"?> > > <CreditApplicationResponse > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:noNamespaceSchemaLocation="credAppSynchronous.xsd"> > > <Status>Dummy</Status> > > <Error> > > <text>Dummy</text> > > </Error> > > <ApplicationLabel>dummy</ApplicationLabel> > > </CreditApplicationResponse> > > > > Is there a way to do this programatically or via a mapping file? > > > > -- > > Ron DiFrango > > Blog (www.captech-soa.blogspot.com <http://www.captech-soa.blogspot.com > >) > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Ron DiFrango Blog (www.captech-soa.blogspot.com)

