I have 2 files in my D:\HTML folder
.
Those are data.xml
and home.html
. I found data Biding is not working it only displays the "Name" in the web browser.
I was expecting "Name" should be displayed and all the 3 user ids below it. D
<? xml version="1.0" encoding="utf-8" ?>
<Mails>
<Mail>
<UserID>a@gmail.com</UserID>
<UserName>User 1</UserName>
</Mail>
<Mail>
<UserID>b@gmail.com</UserID>
<UserName>User 2</UserName>
</Mail>
<Mail>
<UserID>c@gmail.com</UserID>
<UserName>User 3</UserName>
</Mail>
</Mails>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>User Names and Ids</title>
</head>
<body>
<xml id="Mails" src="data.xml" />
<table datasrc="#Mails">
<tr>
<td><strong>Name</strong>:</td>
<td><div datafld="UserID" /></td>
</tr>
</table>
</body>
</html>