Solved

Very very very beginner question...

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
selectSingleNode in Access 2013 11 53
How do i send an api key in a request header 3 58
Extract XML Data from using TSQL 5 46
XML Data Missing in PHP SimpleXML 8 45
The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 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

21 Experts available now in Live!

Get 1:1 Help Now