Solved

Reading XML file of Sports scores

Posted on 2010-08-24
2
476 Views
Last Modified: 2013-11-18
Experts, a website that I use for Sports Scores and Lines makes their info available to users in XML:

http://www.mysportsbook.com/lines/cgi/lines.cgi?tem=parse&sport=206&ct=text/xml&type=

I cannot figure out where in this XML file it tells you the Favorite.
<FavoredTeam> is almost always blank but it still tells me the line (ex:  <Line>-7.5</Line> )

I was expecting to see something like this:  <FavoredTeam>Patriots(NewEngland)</FavoredTeam>
but instead I see:  <FavoredTeam /> for almost every entry (unless even).

Am I interpreting this wrong or can I NOT get that information from this XML file?

-Dan
0
Comment
Question by:dsg138
2 Comments
 
LVL 21

Accepted Solution

by:
MogalManic earned 250 total points
ID: 33520551
no you are reading the XML correctly.  The server is not filling in the <FavoredTeam> element.  I checked other sports and the same thing is happening for other sports as well.
0
 

Author Comment

by:dsg138
ID: 33525856
ok, that's what I thought... thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question