| Author |
Data Binding Question
|
|
| gadrin7@aol.com 2005-03-25, 6:34 pm |
| I saw an article that shows how to bind XML on an HTML page into a
table. Great. It works and I understand it.
It also mentioned that you could bind the attribute values of a node to
display. However I couldn't get it to work. (no examples of course.)
Is that correct ?
if the XML looks like:
<root>
<node name="Joe Blow" age="27" />
<node name="Jim Smith" age="37" />
<node name="Jon White" age="26" />
</root>
how to bind the attribute values into an HTML table?
| |
| Joe Fawcett 2005-03-25, 6:34 pm |
| <gadrin7@aol.com> wrote in message
news:1111779417.050512.239060@g14g2000cwa.googlegroups.com...
>I saw an article that shows how to bind XML on an HTML page into a
> table. Great. It works and I understand it.
>
> It also mentioned that you could bind the attribute values of a node to
> display. However I couldn't get it to work. (no examples of course.)
>
> Is that correct ?
>
> if the XML looks like:
> <root>
> <node name="Joe Blow" age="27" />
> <node name="Jim Smith" age="37" />
> <node name="Jon White" age="26" />
> </root>
>
> how to bind the attribute values into an HTML table?
>
The data provider doesn't understand attributes directly. The above is turned
into a tabular element style form:
<root>
<node><name>Joe Blow</name><age>27</age></node>
....
</root>
--
Joe (MVP - XML)
https://mvp.support.microsoft.com/p...E8-8741D22D17A5
| |
| gadrin7@aol.com 2005-03-25, 11:18 pm |
| so the article/help file I read was just being, uh, *generous* in its
claims ? ;)
well that doesn't do me any good.
thanks for your help.
| |
|
|
| gadrin7@aol.com 2005-03-26, 6:46 pm |
| ok, very interesting.
the only problem using $Text that I see, is that my nodes have more
than one attribute.
I"m wondering if this will work on an ADO recordset that's persisted to
XML. Only one way to find out!
You wouldn't happen to know if there's an XSL or XSLT or DOM method of
converting ADO persisted XML to Excel 2003 XML? (in either version).
Anyway thanks for your time and patience.
| |
| Joe Fawcett 2005-03-29, 7:29 am |
| <gadrin7@aol.com> wrote in message
news:1111859954.118429.92430@o13g2000cwo.googlegroups.com...
> ok, very interesting.
>
> the only problem using $Text that I see, is that my nodes have more
> than one attribute.
>
> I"m wondering if this will work on an ADO recordset that's persisted to
> XML. Only one way to find out!
>
> You wouldn't happen to know if there's an XSL or XSLT or DOM method of
> converting ADO persisted XML to Excel 2003 XML? (in either version).
>
> Anyway thanks for your time and patience.
>
I don't know if there's a built in method, you could write your own
transform. Maybe better to ask in one of the Excel groups.
--
Joe (MVP - XML)
https://mvp.support.microsoft.com/p...E8-8741D22D17A5
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |