troubleshooting Question

XML Data in HTML using datasrc and datafld

Avatar of hhammash
hhammash asked on
17 Comments1 Solution3497 ViewsLast Modified:
I have the following code which works perfectly on IE7.  But it displays only table heading in IE8 and displays the code under the table in FireFox.

What to do to make the code work fine in IE8 and FireFox?

Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">


<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
<title>New Page 1</title>

<table datasrc="#products" border="1" width="400" cellspacing="1" style="border-collapse: collapse" id="table1">
		<td><span datafld="name"></span></td>
		<td><span datafld="type"></span></td>
		<td><span datafld="price"></span></td>

<xml id="products">
	<item id="item1">

	<item id="item2">
		<name>Black Coffee</name>

	<item id="item3">

	<item id="item4">

	<item id="item5">


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 17 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros