[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

XSD Generate Dataset Class

joseph Bartoli

8/29/2003 2:07:00 PM

xsd /dataset /language:CS dtsswap.xsd
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.0.3705.0]
Copyright (C) Microsoft Corporation 1998-2001. All rights
reserved.

Error: There was an error processing 'dtsswap.xsd'.
- Input string was not in a correct format.

If you would like more help, please type "xsd /?".


Since Last week, I receive this message. I don't know why
I don't make modification on dtsswap.xsd or on another xsd

Any suggestion ?

.


3 Answers

Dino Chiesa [MSFT]

8/29/2003 2:24:00 PM

0

A. have you considered using v1.1 of the .NET SDK ?

B. What does your XSD look like? Can we see?

-Dino


"joseph Bartoli" <joseph.Bartoli@smap.be> wrote in message
news:0dad01c36e36$c4716140$a301280a@phx.gbl...
> xsd /dataset /language:CS dtsswap.xsd
> Microsoft (R) Xml Schemas/DataTypes support utility
> [Microsoft (R) .NET Framework, Version 1.0.3705.0]
> Copyright (C) Microsoft Corporation 1998-2001. All rights
> reserved.
>
> Error: There was an error processing ''dtsswap.xsd''.
> - Input string was not in a correct format.
>
> If you would like more help, please type "xsd /?".
>
>
> Since Last week, I receive this message. I don''t know why
> I don''t make modification on dtsswap.xsd or on another xsd
>
> Any suggestion ?
>
> .
>
>


Dino Chiesa [MSFT]

8/29/2003 5:02:00 PM

0

Hmm, Joseph, This works for me.
$ xsd /d Joseph1.xsd
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Writing file ''C:\dinoch\dev\dotnet\xml-serialization\joseph1.cs''.

=======================================
I have
winXP sp1
.NET Framework SDK v1.1

==========================================
MSXML should not be an issue? I believe the xsd.exe utility does not use
MSXML, but instead uses the .NET Framework XML library. I am not certain
of this.

Can you try an alternative machine?

==========================================
The XSD file I used is shown below:

&#239;&#187;&#191;<?xml version="1.0" encoding="utf-8"?>
<xs:schema
id="Joseph1"
xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSc...
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">

<xs:element name="joseph1">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Currency">
<xs:complexType>
<xs:sequence>
<xs:element name="cur_pk" msdata:ReadOnly="true"
msdata:AutoIncrement="true" type="xs:int" />
<xs:element name="cur_lname" type="xs:string" minOccurs="0" />
<xs:element name="cur_sname" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

"joseph.bartoli" <joseph.bartoli@smap.be> wrote in message
news:00a301c36e3c$35b62b10$a101280a@phx.gbl...
>
> I develop on the same machine since March without problem
> but since Friday last week. I have this message
> in Visual Studio .NET when I try to re-generate dataset
> class or when I try via the command line.
> When I try the same project on the other machine I need
> first to delete the class before to re-generate it.
>
> I try to get another version of XSD from another machine
> > same problem
> I un-install ans re-install Framework and Visual Studio
> > same problem
>
> I try via the command line to generate the class
> xsd /c /language:CS dtsswap.xsd
> > ok
>
>
> This XSD give problem
>
> <xs:complexType>
> <xs:choice maxOccurs="unbounded">
> <xs:element name="Currency">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="cur_pk" msdata:ReadOnly="true"
> msdata:AutoIncrement="true" type="xs:int" />
> <xs:element name="cur_lname" type="xs:string"
> minOccurs="0" />
> <xs:element name="cur_sname" type="xs:string"
> minOccurs="0" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:choice>
> </xs:complexType>
> this XSD work fine
>
> <xs:complexType>
> <xs:choice maxOccurs="unbounded">
> <xs:element name="Currency">
> <xs:complexType>
> <xs:sequence>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:choice>
> </xs:complexType>
>
>
> -May be a problem about MSXML. ?
> -The network team install SP3,SP4 W2000 last week ?
>
>
> >-----Original Message-----
> >A. have you considered using v1.1 of the .NET SDK ?
> >
> >B. What does your XSD look like? Can we see?
> >
> >-Dino
> >
> >
> >"joseph Bartoli" <joseph.Bartoli@smap.be> wrote in message
> >news:0dad01c36e36$c4716140$a301280a@phx.gbl...
> >> xsd /dataset /language:CS dtsswap.xsd
> >> Microsoft (R) Xml Schemas/DataTypes support utility
> >> [Microsoft (R) .NET Framework, Version 1.0.3705.0]
> >> Copyright (C) Microsoft Corporation 1998-2001. All
> rights
> >> reserved.
> >>
> >> Error: There was an error processing ''dtsswap.xsd''.
> >> - Input string was not in a correct format.
> >>
> >> If you would like more help, please type "xsd /?".
> >>
> >>
> >> Since Last week, I receive this message. I don''t know
> why
> >> I don''t make modification on dtsswap.xsd or on another
> xsd
> >>
> >> Any suggestion ?
> >>
> >> .
> >>
> >>
> >
> >
> >.
> >


joseph Bartoli

9/2/2003 7:54:00 AM

0

I have no problem on another machine.
I know the problem it''s locate on my machine and not on
the xsd file.
I try to repaire my machine before to ask a complete re-
install.

I try a XSD from another machine. Same Problem
I search which DLL, which files are used by xsd to run and
created the dataset class ?
I have alerady to re-install the Framework. - Same problem


>-----Original Message-----
>Hmm, Joseph, This works for me.
>$ xsd /d Joseph1.xsd
>Microsoft (R) Xml Schemas/DataTypes support utility
>[Microsoft (R) .NET Framework, Version 1.1.4322.573]
>Copyright (C) Microsoft Corporation 1998-2002. All rights
reserved.
>
>Writing file ''C:\dinoch\dev\dotnet\xml-
serialization\joseph1.cs''.
>
>=======================================
>I have
> winXP sp1
> .NET Framework SDK v1.1
>
>==========================================
>MSXML should not be an issue? I believe the xsd.exe
utility does not use
>MSXML, but instead uses the .NET Framework XML
library. I am not certain
>of this.
>
>Can you try an alternative machine?
>
>==========================================
>The XSD file I used is shown below:
>
>&#239;&#187;&#191;<?xml version="1.0" encoding="utf-8"?>
><xs:schema
> id="Joseph1"
> xmlns=""
> xmlns:xs="http://www.w3.org/2001/XMLSc...
> xmlns:msdata="urn:schemas-microsoft-com:xml-
msdata">
>
> <xs:element name="joseph1">
> <xs:complexType>
> <xs:choice maxOccurs="unbounded">
> <xs:element name="Currency">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="cur_pk"
msdata:ReadOnly="true"
>msdata:AutoIncrement="true" type="xs:int" />
> <xs:element name="cur_lname"
type="xs:string" minOccurs="0" />
> <xs:element name="cur_sname"
type="xs:string" minOccurs="0" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:choice>
> </xs:complexType>
> </xs:element>
></xs:schema>
>
>"joseph.bartoli" <joseph.bartoli@smap.be> wrote in message
>news:00a301c36e3c$35b62b10$a101280a@phx.gbl...
>>
>> I develop on the same machine since March without
problem
>> but since Friday last week. I have this message
>> in Visual Studio .NET when I try to re-generate dataset
>> class or when I try via the command line.
>> When I try the same project on the other machine I need
>> first to delete the class before to re-generate it.
>>
>> I try to get another version of XSD from another
machine
>> > same problem
>> I un-install ans re-install Framework and Visual Studio
>> > same problem
>>
>> I try via the command line to generate the class
>> xsd /c /language:CS dtsswap.xsd
>> > ok
>>
>>
>> This XSD give problem
>>
>> <xs:complexType>
>> <xs:choice maxOccurs="unbounded">
>> <xs:element name="Currency">
>> <xs:complexType>
>> <xs:sequence>
>> <xs:element name="cur_pk" msdata:ReadOnly="true"
>> msdata:AutoIncrement="true" type="xs:int" />
>> <xs:element name="cur_lname" type="xs:string"
>> minOccurs="0" />
>> <xs:element name="cur_sname" type="xs:string"
>> minOccurs="0" />
>> </xs:sequence>
>> </xs:complexType>
>> </xs:element>
>> </xs:choice>
>> </xs:complexType>
>> this XSD work fine
>>
>> <xs:complexType>
>> <xs:choice maxOccurs="unbounded">
>> <xs:element name="Currency">
>> <xs:complexType>
>> <xs:sequence>
>> </xs:sequence>
>> </xs:complexType>
>> </xs:element>
>> </xs:choice>
>> </xs:complexType>
>>
>>
>> -May be a problem about MSXML. ?
>> -The network team install SP3,SP4 W2000 last week ?
>>
>>
>> >-----Original Message-----
>> >A. have you considered using v1.1 of the .NET SDK ?
>> >
>> >B. What does your XSD look like? Can we see?
>> >
>> >-Dino
>> >
>> >
>> >"joseph Bartoli" <joseph.Bartoli@smap.be> wrote in
message
>> >news:0dad01c36e36$c4716140$a301280a@phx.gbl...
>> >> xsd /dataset /language:CS dtsswap.xsd
>> >> Microsoft (R) Xml Schemas/DataTypes support utility
>> >> [Microsoft (R) .NET Framework, Version 1.0.3705.0]
>> >> Copyright (C) Microsoft Corporation 1998-2001. All
>> rights
>> >> reserved.
>> >>
>> >> Error: There was an error processing ''dtsswap.xsd''.
>> >> - Input string was not in a correct format.
>> >>
>> >> If you would like more help, please type "xsd /?".
>> >>
>> >>
>> >> Since Last week, I receive this message. I don''t know
>> why
>> >> I don''t make modification on dtsswap.xsd or on
another
>> xsd
>> >>
>> >> Any suggestion ?
>> >>
>> >> .
>> >>
>> >>
>> >
>> >
>> >.
>> >
>
>
>.
>