PC Review


Reply
Thread Tools Rate Thread

Restrictions on xml format to create datasets?

 
 
harry
Guest
Posts: n/a
 
      26th Aug 2003
Hello,

I've been looking into this all day but can find no reference related to
this. We have a legacy com object which returns back data from a datasource
in an xml format, similar to the following:

<rows>
<row>
<column name="OrderNo" security="0">
<value>1</value>
</column>
<column name="OrderName" security="32">
<value>flowers</value>
</column>
<column name="Cost" security="0">
<value>10.50</value>
</column>
</row>
<row>
<column name="OrderNo" security="0">
<value>2</value>
</column>
<column name="OrderName" security="32">
<value>car</value>
</column>
<column name="Cost" security="0">
<value>5000</value>
</column>
</row>
</rows>

(where name is the column name, security is whether editable or not, and
value is the value of the cell)

Is there any simple way of converting this xml structure into a dataset or
are we likely to have to create our own dataset object to pass into the
datagrid/create some xsl transformations to convert it into another form?

Oh we do have the metadata for each column by this point so it is easier
enough to create an xsd with this information but we cannot figure out it's
structure so a dataset would be filled correctly.

cheers for any suggestions anyone can put this way.

Harry


 
Reply With Quote
 
 
 
 
John Viele
Guest
Posts: n/a
 
      26th Aug 2003
I think the article you need may be this:

http://msdn.microsoft.com/library/de...ionfromxml.asp


"harry" <(E-Mail Removed)> wrote in message
news:3f4b828e$(E-Mail Removed)...
> Hello,
>
> I've been looking into this all day but can find no reference related to
> this. We have a legacy com object which returns back data from a

datasource
> in an xml format, similar to the following:
>
> <rows>
> <row>
> <column name="OrderNo" security="0">
> <value>1</value>
> </column>
> <column name="OrderName" security="32">
> <value>flowers</value>
> </column>
> <column name="Cost" security="0">
> <value>10.50</value>
> </column>
> </row>
> <row>
> <column name="OrderNo" security="0">
> <value>2</value>
> </column>
> <column name="OrderName" security="32">
> <value>car</value>
> </column>
> <column name="Cost" security="0">
> <value>5000</value>
> </column>
> </row>
> </rows>
>
> (where name is the column name, security is whether editable or not, and
> value is the value of the cell)
>
> Is there any simple way of converting this xml structure into a dataset or
> are we likely to have to create our own dataset object to pass into the
> datagrid/create some xsl transformations to convert it into another form?
>
> Oh we do have the metadata for each column by this point so it is easier
> enough to create an xsd with this information but we cannot figure out

it's
> structure so a dataset would be filled correctly.
>
> cheers for any suggestions anyone can put this way.
>
> Harry
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrictions in format juanpablo Microsoft Excel Misc 1 27th Apr 2010 07:15 PM
How do I create a two axis chart - two datasets Rocket Nut Microsoft Excel Charting 0 30th Apr 2008 02:38 AM
Re: Create typed DataSets on the fly chanmm Microsoft C# .NET 0 21st Dec 2006 03:39 PM
Re: Create typed DataSets on the fly Dave Sexton Microsoft C# .NET 0 20th Dec 2006 12:14 PM
How do I create a report with date restrictions Terry Microsoft Access Reports 1 20th Mar 2004 06:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:28 PM.