Home All Groups Group Topic Archive Search About
Author
11 Sep 2006 12:40 PM
Urs
Hi

I'm trying to load an XML document with a local XSD reference into a
DataSet. The DataSet is popuplated, but the types are all strings, rather
than the spefiified types in ths XSD. (I checked validation with
XmlReaderSettings and XmlReader, and also with XmlDocument, and it appears
to be ok.)

What could cause DataSet.ReadXml() to not correctly interpret the XSD file
when creating the DataSet?

Thanks for any hints. Urs

Author
12 Sep 2006 6:13 AM
Urs
Figured it out myself. DataSet.ReadXml() does not consider any xsd
references, they must be pre-loadedt wit DataSet.ReadXmlSchema(). Thanks
anyway.

Show quoteHide quote
"Urs" <uvo***@msn.com> schrieb im Newsbeitrag
news:OBxgA%23Z1GHA.1256@TK2MSFTNGP04.phx.gbl...
> Hi
>
> I'm trying to load an XML document with a local XSD reference into a
> DataSet. The DataSet is popuplated, but the types are all strings, rather
> than the spefiified types in ths XSD. (I checked validation with
> XmlReaderSettings and XmlReader, and also with XmlDocument, and it appears
> to be ok.)
>
> What could cause DataSet.ReadXml() to not correctly interpret the XSD file
> when creating the DataSet?
>
> Thanks for any hints. Urs
>
Author
12 Sep 2006 12:26 PM
Gultekin Komanli
I was thinking of how could this be done.

Thank you !

Gultekin.

Urs wrote:

Show quoteHide quote
> Figured it out myself. DataSet.ReadXml() does not consider any xsd
> references, they must be pre-loadedt wit DataSet.ReadXmlSchema().
> Thanks anyway.
>
> "Urs" <uvo***@msn.com> schrieb im Newsbeitrag
> news:OBxgA%23Z1GHA.1256@TK2MSFTNGP04.phx.gbl...
> > Hi
> >
> > I'm trying to load an XML document with a local XSD reference into
> > a  DataSet. The DataSet is popuplated, but the types are all
> > strings, rather  than the spefiified types in ths XSD. (I checked
> > validation with  XmlReaderSettings and XmlReader, and also with
> > XmlDocument, and it appears  to be ok.)
> >
> > What could cause DataSet.ReadXml() to not correctly interpret the
> > XSD file  when creating the DataSet?
> >
> > Thanks for any hints. Urs
> >



--