473,513 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

whats the best way to do this?

hi,

i am 3 xml files containing train timetables, the columns in each xml file
are "departuretime" and "destination". the difference between the 3 files
are they contain train times for 3 different train companies.

i want to display 3 columns (1 for each company), and display (in HTML) the
time each train departs. however, i want to break the times into hours like
following:

1300 Detroit 1300 Texas 1315 New York
1330 New York 1310 Boston 1347 Washington
1350 Las Vegas

1410 Detroit 1400 New York 1450 Las Vegas
1430 New York 1440 Boston 1427 Washington

..... etc

What is the best way to do this. I was thinking I could load the 3 xml
files into a dataset, but I don't know where to go from there with regards
to using a repeater, or xsl transform, or any other way.
Nov 16 '05 #1
3 1237
You have many ways, from my view point you can use just XSLT.
"suzy" <su**@spam.com> wrote in message
news:cv****************@news-binary.blueyonder.co.uk...
hi,

i am 3 xml files containing train timetables, the columns in each xml file
are "departuretime" and "destination". the difference between the 3 files
are they contain train times for 3 different train companies.

i want to display 3 columns (1 for each company), and display (in HTML) the time each train departs. however, i want to break the times into hours like following:

1300 Detroit 1300 Texas 1315 New York
1330 New York 1310 Boston 1347 Washington
1350 Las Vegas

1410 Detroit 1400 New York 1450 Las Vegas
1430 New York 1440 Boston 1427 Washington

.... etc

What is the best way to do this. I was thinking I could load the 3 xml
files into a dataset, but I don't know where to go from there with regards
to using a repeater, or xsl transform, or any other way.

Nov 16 '05 #2
I'd agree with Maxim. Just combine the 3 xml documents into one, possibly
each under a new tag as listed below, and then just use XSL.

<Companies>
<Company name="name1">
<!-- contents of company 1 xml doc go in here -->
</Company>
<Company name="name2">
<!-- contents of company 2 xml doc go in here -->
</Company>
<!-- etc -->
</Companies>
Nov 16 '05 #3
thanks, the only thing with xsl is that i would have to loop through each
hour, for each company.

because remember i want the times to be broken into hourly times, which
means i cant loop though an entire company in one go, or the layout will go
out of sync.

do you know if there is any way i can use a repeater and pass parameters
into the dataset for each iteration, so i can filter out the records for the
current hour i am looping through?

many thanks again.
"WineNCheese" <no****@nowhere.com> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
I'd agree with Maxim. Just combine the 3 xml documents into one, possibly
each under a new tag as listed below, and then just use XSL.

<Companies>
<Company name="name1">
<!-- contents of company 1 xml doc go in here -->
</Company>
<Company name="name2">
<!-- contents of company 2 xml doc go in here -->
</Company>
<!-- etc -->
</Companies>

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1286
by: Eva | last post by:
Hi all, I just wanted some advise on what control is best to use in my situaton. What i am trying to achieve is to allow the user to enter 1 or more room names into a control of some sort so...
3
5331
by: Kevin Steffer | last post by:
Hi group I have a webform which I want to make an ftp connection for a filetransfer from. The thing is when I use the WebRequest class it says "The URI prefix is not recognized" and my URI is...
2
1558
by: SOR | last post by:
I'm writing a guestbook and given the number of entrys the guestbook might have can vary quite a lot - the nav links to view the guestbook entrys need to generated live at the time to suit . ...
5
2472
by: Panama Red | last post by:
I would like to learn to program in c++ on Linux and AIX systems...mainly socket and fifo type stuff. Can someone recommend a book for someone with experience only with Perl, shell, and Pick/Basic...
4
1994
by: David Lozzi | last post by:
OK simple question. Whats the default value for an string() array? sub LoadStuff(byval one as integer, byval two as string, optional byval three() as string = ??) Its driving me nuts! ...
4
1391
by: markrush | last post by:
if i have 2 datasources with different table names and column headers that i want to merge i.e. "ptitle" and "name" whats the best way of doing this? are there any standard routines or should i use...
16
1198
by: Brian Henry | last post by:
Is there a listing out there anywhere that lists what is new in .NET 2.0 mainly in VB? I've seen simple lists like oh we have all these new controls, but I want a class list and such also. thanks!
2
1236
by: moondaddy | last post by:
I'm using WPF and c#. Whats the best way for a child class to know about it's parent class? For examle class ParentClass : CollectionBase { // code... class ChildClass { // code...
4
3074
by: LoneHunter01 | last post by:
Basically, I just need a general direction on where to go for this. Yes, this is for a school project, though it's strictly an optional one (and I have tried many solutions, one in-depth). We've...
7
2259
by: Paulo | last post by:
Hi, what is diference between: File -New Web Site and File -New Project -VB/C# -Web Application ?????? VS 2005
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.