Wrox Programmer Forums
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 23rd, 2004, 10:27 AM
Registered User
Join Date: Jan 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Basic XML to ASP Problem

Hi all,
I have been using ASP for quite some time but I am new to XML.
I have been batteling to get ASP to recognise some data in XML

My XML File called bookings.xml looks like a follows:-

<?xml version="1.0" encoding="iso-8859-1"?>
  <month id="m1">
    <booked>booked 1</booked>
    <provbooked>provbooked 1</provbooked>
  <month id="m2">
    <booked>booked 2</booked>
    <provbooked>provbooked 2</provbooked>
  <month id="m3">
    <booked>booked 3</booked>
    <provbooked>provbooked 3</provbooked>
The XML file will hold 12 sets of similar information but will be identified by its own id tag m1, m2, m3 ... etc.

The ASP File which calls the XML data is shown below:-

<xml src="bookings.xml" id="m1" async="false">

<br />Title:
<span datasrc="#m1" datafld="booked"></span>
<br />Artist:
<span datasrc="#m1" datafld="provbooked"></span>

<br />Title:
<span datasrc="#m2" datafld="booked"></span>
<br />Artist:
<span datasrc="#m2" datafld="provbooked"></span>

<br />Title:
<span datasrc="#m3" datafld="booked"></span>
<br />Artist:
<span datasrc="#m3" datafld="provbooked"></span>
The asp page only captures the first child of data from the XML file even though I have changed its sourcing <xml src="bookings.xml" id="m1" async="false"> to other id field childs.

I want to be able to call either a single childs data or a collection of childs data.

What am I doing wrong? Is there a better way of doing this?
Please can you help.


Use you brain, not your brawn!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic doubt in combining XML Documents rajatake XSLT 2 May 4th, 2006 04:30 AM
New to XML. Have a couple basic questions sswingle XML 2 April 22nd, 2006 07:13 AM
Visual Basic 6.0 and XML garyjh All Other Wrox Books 5 April 25th, 2005 09:44 AM
ASP+XML OBJECT REQUIRED PROBLEM! S O S! mihalisp XML 0 April 28th, 2004 12:13 PM
Basic: Calling variable in ASPX from XML DolphinBay ASP.NET 1.0 and 1.1 Basics 11 April 21st, 2004 09:21 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.