Solved

Very very very beginner question...

Posted on 2002-07-25
3
539 Views
Last Modified: 2006-11-17
Hi,

I have the following XML file:
http://www.prnewswire.com.br/clientes/prnusa/pt-LATAMSUM-NDNMtw.xml

And I have the (not working) HTML page:

<html>
<body>
<xml id="news" src="pt-LATAMSUM-NDNMtw.xml" async="false"></xml>
<table border="1" datasrc="#news">
<tr>
<td><span datafld="hl1"></span></td>
</tr>
</table>
Head-line: <span datasrc="#news" datafld="hl1"></span>
</body>
</html>

Neither HTML table binding or element binding is working.
What am I doing wrong?

TIA
0
Comment
Question by:itamar
3 Comments
 
LVL 14

Accepted Solution

by:
avner earned 75 total points
ID: 7184611
Here is a working example :

the xml (testBind.xml) :

<TESTER>
<DATA1> test1</DATA1>
<DATA2>test 2 </DATA2>
</TESTER>


and the html :
<html>
<body>
<xml id="news" src="bindTest.xml" async="false"></xml>
<table border="1" datasrc="#news">
<tr>
<td><span datafld="DATA1"></span></td>
</tr>
</table>
Head-line: <span datasrc="#news" datafld="DATA2"></span>
</body>
</html>




In my opinion, XSL/XML is better and easier then data binding.

You can see many more examples and tuturials :
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=XML+data+binding+datasrc+attributes

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question