Solved

Very very very beginner question...

Posted on 2002-07-25
3
534 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
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. 
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

775 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