Link to home
Start Free TrialLog in
Avatar of Ajay Sawant
Ajay SawantFlag for India

asked on

I am only getting the heading as the result

billx.html
<HTML>
<BODY>
<XML ID="#xmlbill" SRC="bill.xml"></XML>
<table datasrc="#xmlBill" border=1>
<thead><th>billno</th><th>billdate</th><th>PONO</th><th>billamt</th><th>billduedate</th></thead>
<tr>
      <td><div datafld="billno"></div></td>
      <td><div datafld="billdate"></div></td>
      <td><div datafld="PONO"></div></td>
      <td><div datafld="billamt"></div></td>
      <td><div datafld="billduedate"></div></td>
</tr>
</table></BODY></HTML>
bill.xml
<?xml version="1.0"?>
<info>
<bill>
<billno>001</billno>
<billdate>15/04/2009</billdate>
<PONO>P012345</PONO>
<billamt>2000000</billamt>
<billduedate>20/04/2009</billduedate>
</bill>
<bill>
<billno>002</billno>
<billdate>25/05/2010</billdate>
<PONO>P054321</PONO>
<billamt>5000000</billamt>
<billduedate>20/06/2010</billduedate>
</bill>
</info>
Avatar of Rajar Ahmed
Rajar Ahmed
Flag of India image

Hi,

I Just hit the google and found that your approach is  supported only in IE browser and the author of below link is requesting to avoid that approach and it seems to be a wise choice :

http://w3schools.sinsixx.com/xml/xml_dont.asp.htm

Now , moving on there are lot of approaches to load xml to html using jquery . One lf the approach i have mentioned below:
https://www.aspsnippets.com/Articles/Populate-Fill-HTML-Table-with-XML-data-using-JavaScript-and-jQuery.aspx

Let me know if you are interested in the above approach.

Regards
Rajar
Avatar of Ajay Sawant

ASKER

I need to this with xml dso only!!!
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.