|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
||||
|
||||
|
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. |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > How do I get XML document to repeat certain info |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|