this is my marshalling code:

                Writer stringWriter = new StringWriter();
                Writer out = new BufferedWriter(stringWriter);
                Marshaller marshaller = new Marshaller(out);
                marshaller.marshal(newdataset);

-----Original Message-----
From: Ostermueller, Erik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 05, 2003 3:30 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] upgrading from 0.9.4.1 to 0.9.5 (removing
dinamically namespaces)


.NET probably isn't recognizing "ns1" because you're missing this from your
instance document:

xmlns:ns1="training"

A small-as-possible example of your marshalling code would help.

      > -----Original Message-----
      > From: Uechi Fabio [mailto:[EMAIL PROTECTED]
      > Sent: Friday, September 05, 2003 5:14 AM
      > To: [EMAIL PROTECTED]
      > Subject: [castor-dev] upgrading from 0.9.4.1 to 0.9.5 
      > (removing dinamically namespaces)
      > 
      > 
      > Hey people,
      > 
      > This is my first time using castor and I need some help!!
      > I had just upgraded from castor 0.9.4.1 to the 0.9.5 version.
      > And now I'm facing some namespace related problems.
      > 
      > my schema:
      > 
      > <?xml version="1.0" standalone="yes"?>
      > <xs:schema targetNamespace="training" ......
      > 
      > the generated xml:
      > 
      > before the upgrade:
      > 
      > <?xml version="1.0" encoding="UTF-8"?>
      > <NewDataSet
      > xmlns="training"><protocol><identification>BIL5E20</iden
tification><day><dat
      > e>...
      > 
      > after the upgrade:
      > 
      > <?xml version="1.0" encoding="UTF-8"?>
      > <NewDataSet><ns1:protocol><ns1:identification>BIL5E20</n
s1:identification><n
      > s1:day><ns1:date>...
      > 
      >         The problem is that the .NET client doesn't 
      > recognizes these "ns1"
      > namespace. And besides it, it also demands the 
      > xmlns="training" attribute.
      >         I had already tried to set the namespace 
      > mapping as follows:
      > 
      >         marshaller.setNamespaceMapping("", "training");
      > 
      >         And I also tried taking the "targetNamespace" 
      > attribute off.
      > 
      >         None of these attempts were successfull. There 
      > is always some part
      > missing. Does anyone know how to solve this???
      > 
      > Thanks in advance
      > Fabio
      > 
      > ----------------------------------------------------------- 
      > If you wish to unsubscribe from this mailing, send mail to
      > [EMAIL PROTECTED] with a subject of:
      >         unsubscribe castor-dev
      > 
      > 
      > DISCLAIMER:
      > This email message is for the sole use of the intended 
      > recipient(s) and may contain confidential and 
      > privileged information.  Any unauthorized review, use, 
      > disclosure or distribution is prohibited.  If you are 
      > not the intended recipient, please contact the sender 
      > by reply email and destroy all copies of the original 
      > message and attachments.
      > 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to