Solved

Reading XML file of Sports scores

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to count occurrences of each item in an array.

778 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