Solved

Very very very beginner question...

Posted on 2002-07-25
3
550 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

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…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 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