Hi,
I'm trying to load some XML into a dataset with C# but I have an issue with
the schema. I'm using exactly the same code to successfully load other XML.
The only difference is in the XML I'm trying to load it has:
xs:choice maxoccurs="unbounded"
The error message I'm getting is: "The 'maxoccurs' attribute is not
supported in this context"
The code I'm using to load the DataSet is:
WebRequest request = WebRequest.Create(SchemaURL);
request.Proxy = new WebProxy(proxyServer);
request.Proxy.Credentials = credentials;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream dataStream = response.GetResponseStream();
ds.ReadXmlSchema(dataStream);
....and it's aborting on the ReadXMLSchema.
Any ideas what I'm doing wrong?
Many thanks
Joe Fawcett - 18 Jan 2008 14:56 GMT
> Hi,
>
[quoted text clipped - 24 lines]
>
> Many thanks
It should be maxOccurs with an uppercase O.

Signature
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
Andy C - 19 Jan 2008 11:51 GMT
That was indeed the problem - cheers!
> > Hi,
> >
[quoted text clipped - 26 lines]
> >
> It should be maxOccurs with an uppercase O.