Solved

Reading XML file of Sports scores

Posted on 2010-08-24
2
479 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

617 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