XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 4th, 2002, 05:45 PM
Mobius Man's Avatar
Mobius Man Mobius Man is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 98 Mobius Man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 15 sec
Reputation Power: 6
How do I get XML document to repeat certain info

My XML document for to keep competition scores in for my marching band in, needs to have certain fields repeat, just with the different information. For example:

[code]
<other_bands>
<band_name>Carlisle<image src="E:\Northerm Music Site\thumbs_down.png" height="15" width="15" alt="Boo!" /></band_name>
<score>84.10</score>
<place>2/5</place>

<band_name>Cumberland Valley</band_name>
<score>81.75</score>
<place>5/5</place>

<band_name>Williamsport</band_name>
<score>81.90</score>
<place>4/5</place>
</other_bands>
[\code]


Each of the places from <band_name> need to be repeat 3 times, each time with the infor for each different band. Ex: Carlisle for 1 row, CV for the second row, and Williamsport for the third row.

However, I really don't know how to accomplish this with XML and/or XSL. Here is the XML and XSL documents in full.
Attached Files
File Type: gz scores(v0.5b).gz (735 Bytes, 139 views)

Reply With Quote
  #2  
Old November 8th, 2002, 10:36 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Do this:

Code:
<other_bands>
<band>
 <name>Carlisle<image src="E:\Northerm Music Site\thumbs_down.png" height="15" width="15" alt="Boo!" /></band_name>
 <score>84.10</score>
 <place>2/5</place>
</band>

<band>
 <name>Cumberland Valley</band_name>
 <score>81.75</score>
 <place>5/5</place>
</band>

<band>
 <name>Williamsport</band_name>
 <score>81.90</score>
 <place>4/5</place>
</band>
</other_bands>
__________________
-james

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > How do I get XML document to repeat certain info


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway