Re: XML/XSD to DataSet

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




I was thinking of how could this be done.

Thank you !

Gultekin.

Urs wrote:

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

"Urs" <uvogel@xxxxxxx> schrieb im Newsbeitrag
news:OBxgA%23Z1GHA.1256@xxxxxxxxxxxxxxxxxxxxxxx
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




--

.



Relevant Pages

  • Re: XML/XSD to DataSet
    ... DataSet.ReadXmldoes not consider any xsd ... references, they must be pre-loadedt wit DataSet.ReadXmlSchema. ... than the spefiified types in ths XSD. ... XmlReaderSettings and XmlReader, and also with XmlDocument, and it appears ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Refreshing a referenced dataset
    ... I had to delete and re-install my references to ... happen or if the references should update automatically. ... > XSD leaf in solution explorer should turn into a node. ... > custom tool again to see if it produces anything. ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Referencing the xml: namespace in BTS2004
    ... This is the xsd file that contains the definitions for xml:lang, xml:base, ... and xml:space and references XMLSchemas.dtd which references doctypes.dtd. ... able to validate your xsd file and also xml.xsd and you should now be able ... DTD and the generated XSD to verify that the ...
    (microsoft.public.biztalk.general)
  • Re: xsd.exe errors with schemas importing other schemas
    ... You have to pass in the xsd file on the command line of xsd. ... However, the XSD references ... another schema and the XSD.exe is having trouble finding the referenced ...
    (microsoft.public.dotnet.xml)