Solved

Very very very beginner question...

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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. 
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now