Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML datatype to columned dataset

From: "Alex J. Lee" <hjlee@-------.--->
To: NULL
Date: 9/19/2007 6:18:00 PM

This is really interesting thins.
However, I don't understand what you Daniel wat to do.
Do you want to create table dynamically using xml you mentioned?
Or, do you just want to insert data from xml to already created table?

If possible, please give me more detail information.
I wanna try this one.

Alex

"Daniel Bass" <danREMOVEbass@b...> wrote in message 
news:uOY0fNe1HHA.1344@T......
> Thanks for your reply. I'm looking at the SQL side of things, and would 
> like this in a stored procedure, not in a .Net app...
>
> Any ideas?
> Cheers.
> Dan.
>
> "Martin Honnen" <mahotrash@y...> wrote in message 
> news:eFU1WaVyHHA.1164@T......
>> Daniel Bass wrote:
>>
>>> Give a column of XML datatype containing this:
>>>
>>>  <Foo>
>>>    <Name>Bob</Name>
>>>    <Area>Ghana</Area>
>>>    <Interest>Polar Hiking</Interest>
>>>  </Foo>
>>>
>>>
>>> How do I write SQL that will produce a data set (DYNAMICALLY)?
>>>
>>> Name    Area    Interest
>>> -----------------------------
>>> Bob      Ghana  Polar Hiking
>>>
>>>
>>> The idea is that the name of the elements in my XML are untyped, and may
>>> change. But I'd like a dynamic query to handle this mapping.
>>
>> The DataSet has a ReadXml method, if you simply read in that above XML 
>> using that method then the DataSet instance has one table named Foo with 
>> three columns Name, Area, and Interest.
>>
>>
>>
>> -- 
>>
>> Martin Honnen --- MVP XML
>> http://JavaScript.FAQTs.com/
>
> 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent