 |
|

10-27-2005, 01:05 AM
|
|
SEO Junior and a half
|
|
Join Date: Oct 2005
Posts: 42
|
|
|
Extracting Data from XML using ASP
I've been working on a program using Java to extract data from sportsbook xml feeds, but i've heard that ASP is more efficient in this matter.
Currently I extract data in java like this...
String expression = "//contest[home[@rotation='197']]/overall/money";
then do some string manipulation (getting ints out of the string), then eventually i'll use an applet to display the product
Just wondering if the ASP hype is true and that if this would be more efficient with ASP. Currently my java program extracts all the NFL moneylines and spreadlines from two sportsbooks and takes about 8 seconds (which i think is too much, since i want to add like 20 more).
Anyone with experience with this stuff? I dont want to just display stuff from the xml (i know i can do that with style sheets) I want to extract the data to manipulate.
|

10-27-2005, 04:36 AM
|
 |
SEO GUY Moderator
|
|
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,111

|
|
|
Hi,
I don't know java, but I've also heard that it's quite slow.
ASP has so many built-in xml functions and in my opinion is better supported on the web eg. xmlpitsop.com aspin.com xmlfiles.com asp101.com to name but a few.
If you do decide to go with java, you might want to have a look at topxml.com
Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
|

10-27-2005, 11:18 AM
|
 |
Web Design Pro
|
|
Join Date: May 2004
Location: Grand Rapids, Michigan -- Soon to be San Diego Beach Front
Posts: 901
|
|
|
You could most likely take advantage of the new XML stuff in .NET 2.0 or ASP.NET 2.0. With 2 controls you can have a RSS Display in a matter of seconds also if you wanted to take that data from the XML/RSS Feed you can with the XML control from .NET 2.0
|

10-27-2005, 02:37 PM
|
|
SEO Junior and a half
|
|
Join Date: Oct 2005
Posts: 42
|
|
|
All the stuff I read about ASP makes it sound like its geared towards formating the way you display data. What I'm going to do is read through about 50 xml feeds then output like a single line on my site. (and I forgot to mention, i've been using Xpath in java).
Last edited by banaax : 10-27-2005 at 02:40 PM.
|

10-27-2005, 08:02 PM
|
 |
Web Design Pro
|
|
Join Date: May 2004
Location: Grand Rapids, Michigan -- Soon to be San Diego Beach Front
Posts: 901
|
|
|
So are you looking for like an RSS Reader kind of thing? If so .NET 2.0 is what your looking for. With the XML Control and Datalist Control you can easily build a RSS Feed with that many feeds only though you would need to add the urls in code view if your going to use Visual Studio.
|

10-28-2005, 03:38 AM
|
|
SEO Junior and a half
|
|
Join Date: Oct 2005
Posts: 42
|
|
I apprechiate the help. I've added a few more sportsbooks and am including more sporting events and my program now takes 2 min to run
I'm doing searches for .net 2.0 and am getting a little confused, is there a difference between .net 2.0 and ASP.net 2.0?
And also I dont want to build a RSS feed (i dont think, or is that how .net works?). I just want to compare data from other xml feeds then display my results on a web page.
Would you reccomend I get the Visual Studio 2005 Beta (just did a quick google search)? Also if you know any good .net tutorials I would like to know, reading through the w3schools on asp.net right now, doesn't look TOO tough compared to Xpath with java.
For example of what i want to be able to do. Say I want to display the best line available for the vikings on sunday, So i want to look at the xml feeds of about 30 sportsbooks and figure out which sportsbook has the best line, then only display the best line and the sportsbok that has that line.
Last edited by banaax : 10-28-2005 at 03:48 AM.
|

10-28-2005, 03:21 PM
|
 |
Web Design Pro
|
|
Join Date: May 2004
Location: Grand Rapids, Michigan -- Soon to be San Diego Beach Front
Posts: 901
|
|
|
.NET is a framework to build both Windows Applications and Web Forms applications. I mainly am refering to ASP.NET 2.0 for anything web form related. I would just start using ASP.NET 2.0 over the 1.1 because you would be using the next generation version and have better development to production with the new stuff in it.
I would recommend getting the latest RC1 version of Visual Studio or maybe wait til November 7th for the product launch or if you are a MSDN Subscriber I think you can download it right now.
For what you want to do I would use both the XML stuff along with Xpath to extract the information. If you want to display the stuff just use the XML Control and any data bound control like the Datalist control and maybe Xpath to sort or extract the information you want.
|

10-30-2005, 12:14 AM
|
|
SEO Junior and a half
|
|
Join Date: Oct 2005
Posts: 42
|
|
|
well with my java program it used to take 5 seconds to fill the arrays with all the lines from each bookie, but I rewrote the methods and it now takes about 1/20th of a second, so I think i'll put off ASP for now. although loading the xml feeds still take like 1 second each, but I think figured out a way so they all load at once instead of sequentually. Thanks for all the help though.
|

11-01-2005, 01:16 AM
|
|
SEO Junior and a half
|
|
Join Date: Oct 2005
Posts: 42
|
|
|
back to step 1... I got the program doing exactly what i wanted, then tried to put it on the web in an applet but due to security issues applets cannot load pages from other sites i guess (error in the inputStream() line), not sure if i am going to get servlet hosting or switch over to asp now, damn technology
|

11-01-2005, 01:28 AM
|
 |
SEO GUY Moderator
|
|
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,111

|
|
Quote:
|
Originally Posted by banaax
..... damn technology
|
LOL... I know the feeling; Technology: can't live with it, can't live without it.....
Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|