Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I setup a template to pull in data from xml pages?

Status
Not open for further replies.

Evil8

MIS
Mar 3, 2006
313
US
On our website I have community meetings page. The office wants users to be able to sort the meetings by city, date or subject. Since I already have this information databased in MS Access 2010 I thought an easy way to do this would be to just run the 3 reports monthly and save them as xml pages and have the web template pull in the data based off which link was clicked. I know I can do conditional ( i.e. if the city link is clicked then pull in meetingsbycity.xml data ), but I don't mind setting up three template pages either.

My questing is how to set up the template page? The xml data is:

<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:eek:d="urn:schemas-microsoft-com:eek:fficedata" generated="2011-11-28T12:34:22">
<qry_meetings>
<ID>1</ID>
<edate>2011-10-06T00:00:00</edate>
<etime>1899-12-30T11:00:00</etime>
<name>Meetingplace</name>
<address>123 Lakeshore Drive East</address>
<city>Ashland</city>
<state>WI</state>
<zip>12345</zip>
<company>Company1</company>
<plantypes>Company Plan1</plantypes>
<firstname>Sales</firstname>
<lastname>Person1</lastname>
</qry_meetings>

I have several dozen meetings to list on the page and I would like them listed in columns down and right when read by the user.

Any help would be appreaciated! Thanks!
 
I've gotten this far, but I'm still not pulling data from the xml page:

Code:
<xml id="qry_meetings" src="meetingsbycity.xml"></xml>
<table datasrc="#qry_meetings" width="100%" border="1">
<thread>
<th>City</th><th>State</th><th>Date</th><th>Time</th><th>Place</th><th>Address</th>
  <tr>
  	<td><span datafld="city"></span></td>
	<td><span datafld="state"></span></td>
	<td><span datafld="edate"></span></td>
	<td><span datafld="etime"></span></td>
	<td><span datafld="name"></span></td>
	<td><span datafld="address"></span></td>
 </tr>
</table>

So far all I get is the table with the headers and one blank row in the table itself. What am I missing?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top