Solved

Reading XML file of Sports scores

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
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 …

706 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

16 Experts available now in Live!

Get 1:1 Help Now