XML/XSD to DataSet

U

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
 
U

Urs

Figured it out myself. DataSet.ReadXml() does not consider any xsd
references, they must be pre-loadedt wit DataSet.ReadXmlSchema(). Thanks
anyway.
 
G

Gultekin Komanli

I was thinking of how could this be done.

Thank you !

Gultekin.
Figured it out myself. DataSet.ReadXml() does not consider any xsd
references, they must be pre-loadedt wit DataSet.ReadXmlSchema().
Thanks anyway.



--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top