Here is the schema: <?xml version="1.0" standalone="yes"?> <xs:schema targetNamespace="training" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="training" xmlns:mstns="training" elementFormDefault="qualified" attributeFormDefault="qualified" id="NewDataSet"> <xs:element name="protocol"> <xs:complexType> <xs:sequence> <xs:element name="identification" type="xs:string" /> <xs:element name="day" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="date" type="xs:dateTime" /> <xs:element name="session" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="activity"> <xs:complexType> <xs:sequence> <xs:element name="quantity" type="xs:float" minOccurs="0" /> <xs:element name="duration" type="xs:double" minOccurs="0" /> <xs:element name="factor"> <xs:complexType> <xs:sequence> <xs:element name="name" type="xs:string" /> <xs:element name="unit" type="xs:string" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="intensity" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="level" type="xs:int" /> <xs:element name="percent" type="xs:float" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="info" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="daytime" type="xs:string" minOccurs="0" /> <xs:element name="memo" type="xs:string" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="synchronisation" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="created" type="xs:dateTime" /> <xs:element name="modified" type="xs:dateTime" /> <xs:element name="revision" type="xs:int" /> <xs:element name="newrevision" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="daytime" type="xs:string" minOccurs="0"> </xs:element> <xs:element name="palm-synchronisation" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="recID" type="xs:int" minOccurs="0" /> <xs:element name="isModified" type="xs:boolean" /> <xs:element name="isNew" type="xs:boolean" /> <xs:element name="isDeleted" type="xs:boolean" /> <xs:element name="isArchived" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="ID" type="xs:ID" use="optional" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="de-CH"> <xs:complexType> <xs:choice maxOccurs="unbounded"> <xs:element ref="protocol" /> </xs:choice> </xs:complexType> </xs:element> </xs:schema>
-----Original Message----- From: Ostermueller, Erik [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 3:54 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] upgrading from 0.9.4.1 to 0.9.5 (removing dinamically namespaces) sorry. Need the schema, also. > -----Original Message----- > From: Uechi Fabio [mailto:[EMAIL PROTECTED] > Sent: Friday, September 05, 2003 8:45 AM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] upgrading from 0.9.4.1 to > 0.9.5 (removing dinamically namespaces) > > > 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 > > > 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
