Solved

Reading XML file of Sports scores

Posted on 2010-08-24
2
470 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Challenge to XML Gurus, (XML link downloads blank data while data exists) 10 55
Problem to event 3 76
XML & .net 5 40
XSL FO - text wrapping and empty spaces 1 26
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now