INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

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

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

(OP)
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:od="urn:schemas-microsoft-com:officedata" 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!

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

(OP)
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!
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close