Hi,
I"m getting this error when trying to load an XML document from a third party. I don't have the option of asking them to rename anything. Here's what i'm trying to accomplish.
DataSet _ds = new DataSet();
_ds.ReadXml(URL, XmlReadMode.InferSchema);
I tried InferSchema, IgnoreSchema and, of course, Auto.
I got the same error w/ Infer as Auto (above). With Ignore, I got an empty DataSet.
Please help!!!
Thanks,
kyle.
kyleRoche
http://www.kyleroche.com
![]() |
0 |
![]() |
Get that url, and dump it to the browser. It seems like it's not meant to be loaded into a dataset. Or it's not formed properly.
You might have to use the xml dom for this one.
Kay Lee
MySpace.com - http://www.myspace.com/kragie
Infrastructure Group
MySpace.com
- Code to live, but Live to code.
![]() |
0 |
![]() |
it's formed correctly according to the XML 1.0 standards... you are allowed to have nested tables... however, MS does'nt support it... i got confirmation of that yesterday... they say they will support it w/ Whidbey
thanks for the reply though... i'm looking into other options
kyleRoche
http://www.kyleroche.com
![]() |
0 |
![]() |
nested tables is fine, but if you look at your original post, it leaves a lot to the imagination on what the problem could be. You might want to consider using a stylesheet to transform the xml to a more appropriate schema for a dataset/datatable. That might be a good option for you.
Kay Lee
MySpace.com - http://www.myspace.com/kragie
Infrastructure Group
MySpace.com
- Code to live, but Live to code.
![]() |
0 |
![]() |