![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would expect that there is an easy way to specify how the XML is parsed into tables, perhaps during the read XML? |
#3
| |||
| |||
|
|
JeffP-> wrote: I would expect that there is an easy way to specify how the XML is parsed into tables, perhaps during the read XML? Basically any element with child elements or attributes is mapped to a table and leaf element and attributes serve as columns of tables in the schema respectively as values of rows in the data. You can define an XML schema for the mapping and read that in with ReadXmlSchema() before doing ReadXml() but that is not going to complete change the table and relation structure, it is more aimed at defining the simple types for leaf element and for attributes (e.g. whether foo>2</foo> is treated as a column with string content, int content or double content). See http://msdn.microsoft.com/en-us/library/bfdchewb(v=VS.90).aspx or the corresponing section in your local MSDN library installation for details. -- Martin Honnen --- MVP Data Platform Development http://msmvps.com/blogs/martin_honnen/ . |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |