From: Michael Orlitzky Date: Sun, 1 Jun 2014 18:27:00 +0000 (-0400) Subject: Add tests for TSN.XML.GameInfo. X-Git-Tag: 0.0.6~247 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=b967f5af05beed206a45bf8f4b1b01a139673e19;p=dead%2Fhtsn-import.git Add tests for TSN.XML.GameInfo. Fix a find command used in an existing shell test. Add unsafe_read_document to the Xml module (used in GameInfo tests). --- diff --git a/src/TSN/XML/GameInfo.hs b/src/TSN/XML/GameInfo.hs index e9c1899..f5b64e3 100644 --- a/src/TSN/XML/GameInfo.hs +++ b/src/TSN/XML/GameInfo.hs @@ -13,23 +13,36 @@ -- module TSN.XML.GameInfo ( dtds, + gameinfo_tests, parse_xml, -- * WARNING: these are private but exported to silence warnings GameInfoConstructor(..) ) where -- System imports. +import Data.Either ( rights ) import Data.Time.Clock ( UTCTime ) -import Database.Groundhog ( migrate ) +import Database.Groundhog ( + countAll, + migrate, + runMigration, + silentMigrationLogger ) +import Database.Groundhog.Generic ( runDbConn ) +import Database.Groundhog.Sqlite ( withSqliteConn ) import Database.Groundhog.TH ( groundhog, mkPersist ) +import Test.Tasty ( TestTree, testGroup ) +import Test.Tasty.HUnit ( (@?=), testCase ) import Text.XML.HXT.Core ( XmlTree ) import Text.XML.HXT.DOM.ShowXml ( xshow ) -- Local imports. import TSN.Codegen ( tsn_codegen_config ) -import TSN.DbImport ( DbImport(..), ImportResult(..), run_dbmigrate ) +import TSN.DbImport ( + DbImport(..), + ImportResult(..), + run_dbmigrate ) import TSN.Parse ( parse_message, parse_xmlfid, @@ -37,7 +50,9 @@ import TSN.Parse ( import TSN.XmlImport ( XmlImport(..) ) import Xml ( FromXml(..), - ToDb(..) ) + ToDb(..), + unsafe_read_document ) + -- | The DTDs for everything that we consider "Game Info." -- @@ -137,6 +152,10 @@ instance DbImport Message where insert_xml_ msg return ImportSucceeded + +-- | The database schema for GameInfo is trivial; all we need is for +-- the XML_File_ID to be unique. +-- mkPersist tsn_codegen_config [groundhog| - entity: GameInfo constructors: @@ -147,3 +166,70 @@ mkPersist tsn_codegen_config [groundhog| # Prevent multiple imports of the same message. fields: [db_xml_file_id] |] + + +-- +-- Tasty Tests +-- + +-- | A list of all tests for this module. +-- +gameinfo_tests :: TestTree +gameinfo_tests = + testGroup + "GameInfo tests" + [ test_parse_xml_succeeds, + test_dbimport_succeeds ] + + +-- | Sample XML documents for GameInfo types. +-- +gameinfo_test_files :: [FilePath] +gameinfo_test_files = + [ "test/xml/gameinfo/MLB_Gaming_Matchup_XML.xml", + "test/xml/gameinfo/MLB_Lineup_XML.xml", + "test/xml/gameinfo/MLB_Matchup_XML.xml", + "test/xml/gameinfo/mlbpreviewxml.xml", + "test/xml/gameinfo/MLS_Preview_XML.xml", + "test/xml/gameinfo/NBA_Gaming_Matchup_XML.xml", + "test/xml/gameinfo/NBALineupXML.xml", + "test/xml/gameinfo/NBA_Playoff_Matchup_XML.xml", + "test/xml/gameinfo/nbapreviewxml.xml", + "test/xml/gameinfo/nhlpreviewxml.xml", + "test/xml/gameinfo/recapxml.xml" ] + + +-- | Make sure we can parse every element of 'gameinfo_test_files'. +-- +test_parse_xml_succeeds :: TestTree +test_parse_xml_succeeds = + testGroup "parse_xml" $ map check gameinfo_test_files + where + check t = testCase t $ do + x <- unsafe_read_document t + let result = parse_xml "dummy" x + let actual = case result of -- isRight appears in base-4.7 + Left _ -> False + Right _ -> True + let expected = True + actual @?= expected + + +-- | Ensure that each element of 'gameinfo_test_files' can be imported +-- by counting the total number of database records (after +-- importing) and comparing it against the length of +-- 'gameinfo_test_files'. +-- +test_dbimport_succeeds :: TestTree +test_dbimport_succeeds = testCase "dbimport succeeds" $ do + xmltrees <- mapM unsafe_read_document gameinfo_test_files + let msgs = rights $ map (parse_xml "dummy") xmltrees + actual <- withSqliteConn ":memory:" $ runDbConn $ do + runMigration silentMigrationLogger $ do + migrate (undefined :: GameInfo) + mapM_ dbimport msgs + countAll (undefined :: GameInfo) + + actual @?= expected + where + expected = length gameinfo_test_files diff --git a/src/Xml.hs b/src/Xml.hs index 780a64e..e7d47a1 100644 --- a/src/Xml.hs +++ b/src/Xml.hs @@ -11,6 +11,7 @@ module Xml ( parse_opts, pickle_unpickle, unpickleable, + unsafe_read_document, unsafe_unpickle ) where @@ -22,6 +23,7 @@ import Text.XML.HXT.Core ( (/>), PU, SysConfigList, + XmlTree, isElem, no, readDocument, @@ -153,3 +155,11 @@ unpickleable filepath unpickler = do unsafe_unpickle :: FilePath -> PU a -> IO a unsafe_unpickle filepath unpickler = fmap head $ runX $ xunpickleDocument unpickler parse_opts filepath + + +-- | Read an XML document from a 'FilePath' into an XmlTree. Explode if it +-- doesn't work. +-- +unsafe_read_document :: FilePath -> IO XmlTree +unsafe_read_document filepath = + fmap head $ runX $ readDocument parse_opts filepath diff --git a/test/TestSuite.hs b/test/TestSuite.hs index 2db5e45..baf5f5d 100644 --- a/test/TestSuite.hs +++ b/test/TestSuite.hs @@ -1,6 +1,7 @@ import Test.Tasty ( TestTree, defaultMain, testGroup ) import TSN.XML.AutoRacingSchedule ( auto_racing_schedule_tests ) +import TSN.XML.GameInfo ( gameinfo_tests ) import TSN.XML.Heartbeat ( heartbeat_tests ) import TSN.XML.Injuries ( injuries_tests ) import TSN.XML.InjuriesDetail ( injuries_detail_tests ) @@ -13,6 +14,7 @@ tests :: TestTree tests = testGroup "All tests" [ auto_racing_schedule_tests, + gameinfo_tests, heartbeat_tests, injuries_tests, injuries_detail_tests, diff --git a/test/shell/import-duplicates.test b/test/shell/import-duplicates.test index 039ebad..fbbe6d7 100644 --- a/test/shell/import-duplicates.test +++ b/test/shell/import-duplicates.test @@ -13,7 +13,7 @@ rm -f shelltest.sqlite3 # We note the number of XML files that we have. There's one extra # Heartbeat.xml that doesn't really count. -find ./test/xml -name '*.xml' | wc -l +find ./test/xml -maxdepth 1 -name '*.xml' | wc -l >>> 16 >>>= 0 diff --git a/test/xml/gameinfo/MLB_Gaming_Matchup_XML.dtd b/test/xml/gameinfo/MLB_Gaming_Matchup_XML.dtd new file mode 100644 index 0000000..b9d03c8 --- /dev/null +++ b/test/xml/gameinfo/MLB_Gaming_Matchup_XML.dtd @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/MLB_Gaming_Matchup_XML.xml b/test/xml/gameinfo/MLB_Gaming_Matchup_XML.xml new file mode 100644 index 0000000..474b954 --- /dev/null +++ b/test/xml/gameinfo/MLB_Gaming_Matchup_XML.xml @@ -0,0 +1,588 @@ + + + +210 +BZX%MLB-GMATCHUP-CHC-CIN +Statistics +GAMING +16195 +16195 +Regular +Chicago Cubs +Cincinnati +002 +003 + +Chicago Cubs vs. Cincinnati Reds +04/05/06 12:35 PM ET + + + + +1 +0 +1 +0 + + + +0 +0 +0 +0 + + + +1 +0 +1 +0 + + + + + +0 +1 +1 +0 + + + +0 +1 +1 +0 + + + +0 +0 +0 +0 + + + + + + + +2 +2 +22.2 +1.63 +10 +31 +17 +5.96 + + +2 +2 +23.2 +1.56 +19 +28 +20 +7.23 + + + + +0 +0 +0.0 +0.00 +0 +0 +0 +---- + + +0 +0 +0.0 +0.00 +0 +0 +0 +---- + + + + + + +1 +0 +1 +0 + +.429 +6.00 +.667 +.490 + + +0 +1 +1 +0 + +.324 +10.00 +.588 +.447 + + + + +1 +0 +1 +0 + +.429 +6.00 +.667 +.490 + + +0 +1 +1 +0 + +.324 +10.00 +.588 +.447 + + + + +1 +0 +1 +0 + +.429 +6.00 +.667 +.490 + + +0 +0 +0 +0 + +---- +---- +---- +---- + + + + +0 +0 +0 +0 + +---- +---- +---- +---- + + +0 +1 +1 +0 + +.324 +10.00 +.588 +.447 + + + + + +04/03/2006 + +16 +.429 +.667 +.490 + + +7 +.324 +.588 +.447 + +130 +8.5 +O + + +09/13/2005 + +3 +.270 +.405 +.386 + + +4 +.200 +.400 +.317 + +-230 +9 +U + + +08/10/2005 + +8 +.212 +.333 +.235 + + +2 +.182 +.303 +.386 + +-127 +10 +P + + +08/08/2005 + +9 +.265 +.294 +.359 + + +4 +.250 +.611 +.357 + +-135 +10 +O + + +07/20/2005 + +3 +.226 +.452 +.219 + + +9 +.344 +.750 +.450 + +135 +9 +O + + + + +04/03/2006 +CHC +16 +CIN +7 +-130 +8.5 +W +O +.429 +.667 +.490 + + +10/02/2005 +CHC +4 +HOU +6 +225 +7.5 +L +O +.270 +.405 +.289 + + +10/01/2005 +CHC +1 +HOU +3 +215 +7.5 +L +U +.250 +.250 +.306 + + +09/30/2005 +CHC +4 +HOU +3 +153 +7 +W +P +.297 +.378 +.289 + + +09/29/2005 +CHC +3 +HOU +2 +150 +9 +W +U +.182 +.364 +.229 + + +09/28/2005 +PIT +3 +CHC +2 +-195 +9.5 +L +U +.206 +.324 +.270 + + +09/27/2005 +PIT +5 +CHC +3 +-120 +0 +L +O +.219 +.375 +.242 + + +09/25/2005 +HOU +2 +CHC +3 +153 +9 +W +U +.172 +.379 +.273 + + +09/24/2005 +HOU +8 +CHC +3 +-182 +8.5 +L +O +.133 +.233 +.182 + + +09/23/2005 +HOU +4 +CHC +5 +0 +0 +W +O +.286 +.371 +.324 + + + + +04/03/2006 +CHC +16 +CIN +7 +130 +8.5 +L +O +.324 +.588 +.447 + + +10/02/2005 +CIN +5 +STL +7 +143 +9 +L +O +.256 +.564 +.326 + + +10/01/2005 +CIN +6 +STL +9 +163 +9.5 +L +O +.257 +.571 +.333 + + +09/30/2005 +CIN +6 +STL +12 +165 +9 +L +O +.257 +.314 +.422 + + +09/29/2005 +CIN +0 +MIL +2 +142 +10 +L +U +.100 +.100 +.156 + + +09/28/2005 +CIN +11 +MIL +4 +133 +9 +W +O +.341 +.512 +.400 + + +09/27/2005 +CIN +2 +MIL +6 +120 +9 +L +U +.176 +.265 +.243 + + +09/26/2005 +CIN +9 +MIL +12 +150 +9 +L +O +.273 +.515 +.457 + + +09/25/2005 +PHI +6 +CIN +3 +163 +11 +L +U +.273 +.424 +.294 + + +09/24/2005 +PHI +2 +CIN +3 +142 +11 +W +U +.154 +.269 +.333 + + + April 5, 2006, at 11:59 AM ET + diff --git a/test/xml/gameinfo/MLB_Lineup_XML.dtd b/test/xml/gameinfo/MLB_Lineup_XML.dtd new file mode 100644 index 0000000..78b734f --- /dev/null +++ b/test/xml/gameinfo/MLB_Lineup_XML.dtd @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/MLB_Lineup_XML.xml b/test/xml/gameinfo/MLB_Lineup_XML.xml new file mode 100644 index 0000000..6c10a6c --- /dev/null +++ b/test/xml/gameinfo/MLB_Lineup_XML.xml @@ -0,0 +1 @@ + 21184832 AAB%NL-LINEUP-COL-PHI Statistics MLB 39939 39939 Colorado 013 Philadelphia 008 Starting Lineup: Colorado at Philadelphia 16929 CF 187 60 9 33 .321 20871 2B 155 42 0 12 .271 6627 1B 182 56 9 32 .308 6060 RF 91 29 5 13 .319 22816 LF 72 25 5 13 .347 20027 C 119 27 5 21 .227 22192 SS 27 8 1 4 .296 20321 3B 60 12 1 6 .200 21320 P 25 5 1 3 .200 21320 60 5 1 3.45 20658 CF 163 47 1 8 .288 5535 SS 175 45 6 22 .257 6565 2B 183 61 4 25 .333 7449 1B 179 42 8 30 .235 6297 RF 188 52 6 29 .277 19586 LF 170 35 3 22 .206 16077 C 134 36 1 10 .269 21451 3B 34 5 1 1 .147 8334 P 14 0 0 0 .000 8334 47 2 2 3.83 David Rackley Tony Randazzo Jim Wolf Brian Gorman May 28, 2014, at 04:59 PM ET \ No newline at end of file diff --git a/test/xml/gameinfo/MLB_Matchup_XML.dtd b/test/xml/gameinfo/MLB_Matchup_XML.dtd new file mode 100644 index 0000000..70f3933 --- /dev/null +++ b/test/xml/gameinfo/MLB_Matchup_XML.dtd @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/MLB_Matchup_XML.xml b/test/xml/gameinfo/MLB_Matchup_XML.xml new file mode 100644 index 0000000..a1e2a0e --- /dev/null +++ b/test/xml/gameinfo/MLB_Matchup_XML.xml @@ -0,0 +1 @@ + 21161219 AAX%MATCHUP-ARI-NYM Statistics MLB 39877 Regular Arizona NY Mets 055 007 NL Matchup -- Arizona at New York Mets Arizona Diamondbacks (18-31) at New York Mets (21-25) New York 3-0 (3-0 at Ari; 0-0 at NY) New York 4-3 (2-1 at Ari; 2-2 at NY) New York 4-3 (2-2 at Ari; 2-1 at NY) Tied 3-3 (Ari 3-0 at Home; 0-3 at NY) Arizona 6-18; New York 10-14 Arizona 12-13; New York 11-11 Arizona (L3); New York (W1) Arizona 2-7 New York 5-5 4/14 - New York, 7-3 (at Ari - WP: Wheeler; LP: Collmenter) 4/15 - New York, 9-0 (at Ari - WP: Mejia; LP: Arroyo) 4/16 - New York, 5-2 (at Ari - WP: Gee; LP: McCarthy) 5/23 - Postponed at New York (To be made-up May 25th) 7/01 - New York, 5-4 (13) (at NY - WP: Aardsma; LP: Collmenter) 7/02 - New York, 9-1 (at NY - WP: Hefner; LP: Corbin) 7/03 - Arizona, 5-3 (at NY - WP: Delgado; LP: Harvey) 7/04 - Arizona, 5-4 (15) (at NY - WP: Roe; LP: Rice) 8/09 - Arizona, 5-4 (at Ari - WP: Ziegler; LP: Atchison) 8/10 - New York, 4-1 (at Ari - WP: Wheeler; LP: McCarthy) 8/11 - New York, 9-5 (at Ari - WP: Niese; LP: Spruill) 5/04 - Arizona, 5-4 (at NY - WP: Ziegler; LP: Rauch) 5/05 - New York, 4-3 (at NY - WP: J.Santana; LP: Corbin) 5/06 - New York, 3-1 (at NY - WP: Dickey; LP: Cahill) 7/26 - New York, 3-1 (at Ari - WP: Harvey; LP: Miley) 7/27 - Arizona, 11-5 (at Ari - WP: Collmenter; LP: Niese) 7/28 - Arizona, 6-3 (at Ari - WP: Kennedy; LP: Young) 7/29 - New York, 5-1 (at Ari - WP: Dickey; LP: Saunders) 5/17 - W vs. Los Angeles, 18-7 5/18 - W vs. Los Angeles, 5-3 5/20 - L at St. Louis, 0-5 5/21 - L at St. Louis, 2-3 (12) 5/22 - L at St. Louis, 2-4 5/17 - W at Washington, 5-2 5/18 - L at Washington, 3-6 5/20 - L vs. Los Angeles, 4-9 5/21 - L vs. Los Angeles, 3-4 5/22 - W vs. Los Angeles, 5-3 May 24, 2014, at 11:56 AM ET \ No newline at end of file diff --git a/test/xml/gameinfo/MLS_Preview_XML.dtd b/test/xml/gameinfo/MLS_Preview_XML.dtd new file mode 100644 index 0000000..8b80a8d --- /dev/null +++ b/test/xml/gameinfo/MLS_Preview_XML.dtd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/MLS_Preview_XML.xml b/test/xml/gameinfo/MLS_Preview_XML.xml new file mode 100644 index 0000000..cdf1264 --- /dev/null +++ b/test/xml/gameinfo/MLS_Preview_XML.xml @@ -0,0 +1,119 @@ + + + +16452086 +AHV!MLSPREVIEW-RBN-DCU +2439 +2439 +Previews +SOC-MLS + +MLS Preview from The Sports Network (ET) + +08/29/2012 +08:00 PM +Red Bull New York +D.C. + + Wednesday, Aug. 29, 2012 + (All times Eastern) + +

+ New York (13-7-6) at D.C. United (12-9-4), 8 p.m. + +

+ +

+ Washington, D.C. (Sports Network) - D.C. United continues a busy stretch on + Wednesday night against Red Bull New York, and its recent loss at the Montreal + Impact is already "forgotten," according to Andy Najar. + +

+

+ United coach Ben Olsen did not start a number of regulars over the weekend and + D.C. lost, 3-0, in Montreal. But with its fourth match in just 11 days on the + horizon against New York, Olsen knew players needed a rest. + +

+

+ Montreal took advantage to win its fifth straight match, and moved within just + one point of United for fifth place and the final playoff berth in the Eastern + Conference. + +

+

+ But with three matches in hand on Montreal, United can remain confident of its + chances of its first playoff berth since 2007 with a win against New York + +

+

+ "We've forgotten that already," said Najar about the Montreal loss. "There's a + more important game Wednesday. We are going in with the full intention of + taking all three points." + +

+

+ United (12-9-4) has been impressive at home this season, going unbeaten in its + last 12 games since a season-opening loss to Sporting Kansas City. Another win + at RFK against New York, and Olsen will feel even better about his decision to + rest players. + +

+

+ Although Olsen used Branko Boskovic, Dwayne De Rosario and Chris Pontius off + the bench, it was after Montreal took a two-goal lead. Like Najar, De Rosario + was focused on the upcoming match. + +

+

+ "We are going to keep moving forward," De Rosario said. "We are playing New + York on Wednesday; it's going to be a massive game." + +

+

+ Pontius scored a hat trick on April 22 at RFK as United beat New York, 4-1. In + the teams' other meeting at Red Bull Arena, Brandon Barklage had two goals in + a 3-2 New York win. + +

+

+ United can climb within four points of East leader Sporting KC, but the stakes + are even higher for New York. + +

+

+ The Red Bulls (13-7-6) are just two points off the summit, and could move into + the lead with a victory over United. + +

+

+ New York snapped a three-match road losing streak Sunday, tying Sporting on an + own goal from Kei Kamara, 1-1. With just a 4-7-3 record on the road, it was a + positive result for the Red Bulls. + +

+

+ The Red Bulls have earned the most points through 26 games in team history and + could have Thierry Henry back after he missed the Sporting fixture due to the + birth of his son. + +

+

+ "He trained individually on Sunday, Monday, two quite hard sessions," New York + manager Hans Backe said. + +

+

+ New York could also have recent addition Lloyd Sam, who missed the last match, + but Backe was not sure about the availability of the midfielder. + +

+

+ Backe knows a tough match awaits in D.C., one that could ultimately determine + if his side can secure the regular-season title or even the Supporters' Shield + for the best overall record. + +

+ +August 28, 2012, at 06:29 PM ET +
diff --git a/test/xml/gameinfo/NBALineupXML.dtd b/test/xml/gameinfo/NBALineupXML.dtd new file mode 100644 index 0000000..d9f1aaf --- /dev/null +++ b/test/xml/gameinfo/NBALineupXML.dtd @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/NBALineupXML.xml b/test/xml/gameinfo/NBALineupXML.xml new file mode 100644 index 0000000..67fa60b --- /dev/null +++ b/test/xml/gameinfo/NBALineupXML.xml @@ -0,0 +1 @@ + 21161264 ACB;LINEUP-IND-MIA 19755 19755 Lineups NBA Probable Starting Lineup: Indiana at Miami 1913 Paul George 21.5 8.1 4.1 658 LeBron James 28.8 7.4 4.8 662 David West 14.6 6.5 4.3 630 Udonis Haslem 2.1 3.1 0.4 1481 Roy Hibbert 9.5 5.4 0.7 655 Chris Bosh 13.5 5.3 1.2 1964 Lance Stephenson 14.5 7.1 4.3 631 Dwyane Wade 19.2 3.5 4.1 1502 George Hill 12.6 3.6 3.1 1510 Mario Chalmers 7.6 2.4 4.1 Officials: Monty McCutchen, Tony Brothers, Zach Zarba May 24, 2014, at 12:13 PM ET \ No newline at end of file diff --git a/test/xml/gameinfo/NBA_Gaming_Matchup_XML.dtd b/test/xml/gameinfo/NBA_Gaming_Matchup_XML.dtd new file mode 100644 index 0000000..982ffb8 --- /dev/null +++ b/test/xml/gameinfo/NBA_Gaming_Matchup_XML.dtd @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/NBA_Gaming_Matchup_XML.xml b/test/xml/gameinfo/NBA_Gaming_Matchup_XML.xml new file mode 100644 index 0000000..8b021d5 --- /dev/null +++ b/test/xml/gameinfo/NBA_Gaming_Matchup_XML.xml @@ -0,0 +1 @@ + 21189334 BZX%NBA-GMATCHUP-OKC-SAN Statistics GAMING 19760 19760 Matchup: Oklahoma City Thunder vs. San Antonio Spurs Oklahoma City Thunder vs. San Antonio Spurs 05/29/14 9:00 PM 59-23 43-38-1 23-17-1 20-21-0 42-39-1 21-20-0 21-19-1 62-20 45-37-0 20-21-0 25-16-0 44-38-0 21-20-0 23-18-0 106.2 47.1 36.1 80.6 10.8 33.9 105.4 48.6 39.7 78.5 9.3 34.0 99.8 43.6 35.8 72.7 11.0 30.0 97.6 44.4 35.3 76.0 10.5 31.7 104.2 44.6 26.5 82.3 12.4 30.6 102.0 43.5 36.7 75.8 11.0 32.8 101.8 45.8 38.1 68.6 11.6 31.0 106.2 47.0 33.3 81.3 10.2 38.2 107.7 48.3 38.1 79.3 11.1 34.3 106.3 49.8 42.0 77.8 8.6 34.5 98.5 43.3 36.5 69.8 11.2 28.9 97.4 44.3 37.0 76.2 10.4 31.3 104.6 45.9 34.4 81.9 10.5 33.5 104.4 47.4 37.5 79.1 10.0 33.4 101.2 43.9 35.2 75.5 10.8 31.0 97.8 44.4 33.5 75.8 10.6 32.1 5-3-0 2-3-0 3-0-0 4-2-0 2-6-0 1-3-0 5-1-0 3-6-0 2-2-0 3-5-1 5-2-0 2-3-0 6-4-0 2-0-0 5-3-0 3-5-0 3-3-0 4-3-0 4-0-0 1-3-0 6-6-0 4-2-0 3-4-0 2-0-0 1-1-0 1-0-0 1-0-0 0-0-0 0-0-0 0-0-0 0-0-0 0-0-0 0-0-0 3-1-0 0-1-0 0-2-0 0-0-0 1-1-0 1-0-0 0-0-0 0-0-0 0-0-0 0-0-0 0-0-0 04/03/14 SAN 94 OKC 106 OKC -4/208 OKC/U 01/22/14 OKC 111 SAN 105 SAN -6.5/205 OKC/O 12/21/13 OKC 113 SAN 100 SAN -3.5/205 OKC/O 11/27/13 SAN 88 OKC 94 OKC -2.5/202.5 OKC/U 04/04/13 SAN 88 OKC 100 OKC -7.5/201 OKC/U 03/11/13 OKC 93 SAN 105 SAN -1.5/206.5 SAN/U 12/17/12 SAN 93 OKC 107 OKC -5.5/207 OKC/U 11/01/12 OKC 84 SAN 86 SAN -2/204 -/U 03/16/12 SAN 114 OKC 105 OKC -4/207.5 SAN/O 02/04/12 OKC 96 SAN 107 SAN -3/194.5 SAN/O 04/16/14 LAL 113 SAN 100 SAN -8.5/217 LAL/U 04/14/14 SAN 98 HOU 104 HOU -4/212 HOU/U 04/11/14 PHO 104 SAN 112 SAN -4/206.5 SAN/O 04/10/14 SAN 109 DAL 100 DAL -1.5/201 SAN/O 04/08/14 SAN 91 MIN 110 SAN -7.5/207.5 MIN/U 04/16/14 DET 111 OKC 112 OKC -14/212.5 DET/O 04/14/14 OKC 89 NOP 101 OKC -8/204 NOP/U 04/13/14 OKC 97 IND 102 IND -1.5/192 IND/O 04/11/14 NOP 94 OKC 116 OKC -15.5/205 OKC/O 04/09/14 OKC 107 LAC 101 LAC -3.5/211 OKC/U May 29, 2014, at 10:44 AM ET \ No newline at end of file diff --git a/test/xml/gameinfo/NBA_Playoff_Matchup_XML.dtd b/test/xml/gameinfo/NBA_Playoff_Matchup_XML.dtd new file mode 100644 index 0000000..b842fd8 --- /dev/null +++ b/test/xml/gameinfo/NBA_Playoff_Matchup_XML.dtd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/NBA_Playoff_Matchup_XML.xml b/test/xml/gameinfo/NBA_Playoff_Matchup_XML.xml new file mode 100644 index 0000000..623af14 --- /dev/null +++ b/test/xml/gameinfo/NBA_Playoff_Matchup_XML.xml @@ -0,0 +1 @@ + 21189667 ACX%MATCHUP-POFF-OKC-SAN Statistics NBA 19760 19760 <Matchup_Info> (2) Oklahoma City Thunder (59-23) vs. (1) San Antonio Spurs (62-20) </Matchup_Info> <Playoff_Series> <PS_Listing> Game One - San Antonio 122, Oklahoma City 105 </PS_Listing> <PS_Listing> Game Two - San Antonio 112, Oklahoma City 77 </PS_Listing> <PS_Listing> Game Three - Oklahoma City 106, San Antonio 97 </PS_Listing> <PS_Listing> Game Four - Oklahoma City 105, San Antonio 92 </PS_Listing> <PS_Listing> Game Five - Thursday, May 29th - Oklahoma City at San Antonio, 9 p.m. </PS_Listing> <PS_Listing> Game Six - Saturday, May 31st - San Antonio at Oklahoma City, 8:30 p.m. </PS_Listing> <PS_Listing> *Game Seven - Monday, June 2nd - Oklahoma City at San Antonio, 9 p.m. </PS_Listing> <PS_Listing> (Best-of-seven series tied, 2-2) </PS_Listing> </Playoff_Series> <Head_To_Head_Record> <HTH_Listing HTH_Season="2013-14">Oklahoma City 4-0</HTH_Listing> <HTH_Listing HTH_Season="2012-13">Tied 2-2</HTH_Listing> <HTH_Listing HTH_Season="2011-12">San Antonio 2-1</HTH_Listing> <HTH_Listing HTH_Season="2010-11">San Antonio 3-0</HTH_Listing> <HTH_Listing HTH_Season="Overall">San Antonio 84-69</HTH_Listing> </Head_To_Head_Record> <Playoff_Series_Records PSR_Series_Record="San Antonio 3-1"> <PSR_Listing PSR_Season="1982">San Antonio wins series, 4-1</PSR_Listing> <PSR_Listing PSR_Season="2002">San Antonio wins series, 3-2</PSR_Listing> <PSR_Listing PSR_Season="2005">San Antonio wins series, 4-2</PSR_Listing> <PSR_Listing PSR_Season="2012">Oklahoma City wins series, 4-2</PSR_Listing> </Playoff_Series_Records> <Home_Record>Oklahoma City 34-7; San Antonio 32-9</Home_Record> <Away_Record>Oklahoma City 25-16; San Antonio 30-11</Away_Record> <Division_Conference_Records> <DCR_Listing DCR_Record_Type="Southwest Division">Oklahoma City 13-5</DCR_Listing> <DCR_Listing DCR_Record_Type="Northwest Division">San Antonio 11-7</DCR_Listing> <DCR_Listing DCR_Record_Type="Western Conference">Oklahoma City 36-16; San Antonio 38-14</DCR_Listing> </Division_Conference_Records> <Playoff_Series> <PS_Listing> Per Game Percentage Percentage Turnovers Per Game </PS_Listing> <PS_Listing> Team Own Opp Own Opp Own Opp Own Opp Margin </PS_Listing> <PS_Listing> Oklahoma City 106.2 99.8 .471 .436 .361 .358 15.3 15.2 -.1 </PS_Listing> <PS_Listing> San Antonio 105.4 97.6 .486 .444 .397 .353 14.4 13.9 -.5 </PS_Listing> <PS_Listing> Under 100 Pts OT 3 Pts 10 Pts </PS_Listing> <PS_Listing> Rebound Pct Own Opp Games or Less or More </PS_Listing> <PS_Listing> Team Off Def Tot W-L W-L W-L W-L W-L </PS_Listing> <PS_Listing> Oklahoma City .265 .756 .510 9-11 41-4 3-1 10-4 33-8 </PS_Listing> <PS_Listing> San Antonio .227 .764 .495 10-10 39-3 2-0 7-0 35-12 </PS_Listing> <PS_Listing> 2013-2014 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 11/27 - Oklahoma City, 94-88 (at Okla City) </PS_Listing> <PS_Listing> 12/21 - Oklahoma City, 113-100 (at San) </PS_Listing> <PS_Listing> 01/22 - Oklahoma City, 111-105 (at San) </PS_Listing> <PS_Listing> 04/03 - Oklahoma City, 106-94 (at Okla City) </PS_Listing> <PS_Listing> 2012-2013 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 11/01 - San Antonio, 86-84 (at San) </PS_Listing> <PS_Listing> 12/17 - Oklahoma City, 107-93 (at Okla City) </PS_Listing> <PS_Listing> 03/11 - San Antonio, 105-93 (at San) </PS_Listing> <PS_Listing> 04/04 - Oklahoma City, 100-88 (at Okla City) </PS_Listing> <PS_Listing> 2011-2012 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 01/08 - Oklahoma City, 108-96 (at Okla City) </PS_Listing> <PS_Listing> 02/04 - San Antonio, 107-96 (at San) </PS_Listing> <PS_Listing> 03/16 - San Antonio, 114-105 (at Okla City) </PS_Listing> <PS_Listing> 2010-2011 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 11/14 - San Antonio, 117-104 (at Okla City) </PS_Listing> <PS_Listing> 01/01 - San Antonio, 101-74 (at San) </PS_Listing> <PS_Listing> 02/23 - San Antonio, 109-105 (at San) </PS_Listing> <PS_Listing> 2009-2010 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 11/14 - Oklahoma City, 101-98 (at San) </PS_Listing> <PS_Listing> 01/13 - San Antonio, 109-108 ot (at Okla City) </PS_Listing> <PS_Listing> 02/24 - San Antonio, 95-87 (at San) </PS_Listing> <PS_Listing> 03/22 - San Antonio, 99-96 (at Okla City) </PS_Listing> <PS_Listing> 2008-2009 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 12/14 - San Antonio, 109-104 (at San) </PS_Listing> <PS_Listing> 03/16 - Oklahoma City, 78-76 (at Okla City) </PS_Listing> <PS_Listing> 03/31 - Oklahoma City, 96-95 (at San) </PS_Listing> <PS_Listing> 04/07 - San Antonio, 99-89 (at Okla City) </PS_Listing> <PS_Listing> 2007-2008 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 11/25 - San Antonio, 116-101 (at Sea) </PS_Listing> <PS_Listing> 01/29 - Seattle, 88-85 (at Sea) </PS_Listing> <PS_Listing> 04/11 - San Antonio, 95-74 (at San) </PS_Listing> <PS_Listing> 2006-2007 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 11/26 - San Antonio, 98-78 (at Sea) </PS_Listing> <PS_Listing> 02/24 - San Antonio, 102-71 (at San) </PS_Listing> <PS_Listing> 03/25 - San Antonio, 120-79 (at Sea) </PS_Listing> <PS_Listing> 04/03 - San Antonio, 110-91 (at San) </PS_Listing> <PS_Listing> 2005-2006 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 02/21 - San Antonio, 103-78 (at San) </PS_Listing> <PS_Listing> 03/26 - Seattle, 106-102 (at Sea) </PS_Listing> <PS_Listing> 04/11 - San Antonio, 104-95 (at San) </PS_Listing> <PS_Listing> 2004-2005 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 11/07 - Seattle, 113-94 (at Sea) </PS_Listing> <PS_Listing> 12/08 - Seattle, 102-96 (at San) </PS_Listing> <PS_Listing> 01/31 - San Antonio, 103-84 (at Sea) </PS_Listing> <PS_Listing> 03/30 - San Antonio, 89-76 (at San) </PS_Listing> <PS_Listing> 2003-2004 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 12/19 - San Antonio, 87-73 (at Sea) </PS_Listing> <PS_Listing> 02/05 - San Antonio, 96-90 (at Sea) </PS_Listing> <PS_Listing> 03/03 - San Antonio, 88-84 (at San) </PS_Listing> <PS_Listing> 04/07 - San Antonio, 96-75 (at San) </PS_Listing> <PS_Listing> 2002-2003 Meetings </PS_Listing> <PS_Listing> ------------------ </PS_Listing> <PS_Listing> 11/24 - Seattle, 91-90 (at San) </PS_Listing> <PS_Listing> 12/18 - San Antonio, 91-88 (at Sea) </PS_Listing> <PS_Listing> 01/08 - San Antonio, 106-95 (at Sea) </PS_Listing> <PS_Listing> 04/11 - San Antonio, 94-86 (at San) </PS_Listing> <PS_Listing> Note - The Oklahoma City Thunder were formerly the Seattle SuperSonics. </PS_Listing> <PS_Listing> Note - Oklahoma City has won five straight and six of the last seven meetings. </PS_Listing> <PS_Listing> Note - Oklahoma City has won seven of the last 11 meetings. </PS_Listing> <PS_Listing> Note - San Antonio has won 10 of 17 and 11 of the last 19 meetings. </PS_Listing> <PS_Listing> Note - San Antonio has won 13 of 23 and 19 of the last 30 meetings. </PS_Listing> <PS_Listing> Note - Oklahoma City has won two straight after losing its last six at San Ant. </PS_Listing> <PS_Listing> Note - Oklahoma City has lost 13 of 17 and 16 of its last 21 at San Antonio. </PS_Listing> <PS_Listing> Note - San Ant has lost four straight and five of its last six at Okla City. </PS_Listing> <PS_Listing> Note - These two teams have split the last 10 meetings at Okla City/Seattle. </PS_Listing> <PS_Listing> Note - San Antonio has lost seven of the last 12 road meetings. </PS_Listing> <PS_Listing> Note - San Antonio has won eight of the last 15 road meetings. </PS_Listing> <PS_Listing> Oklahoma City last 17 games San Antonio last 17 games </PS_Listing> <PS_Listing> --------------------------- ------------------------- </PS_Listing> <PS_Listing> 04/19 - W vs. Memphis, 100-86 POFF 04/16 - L vs. LA Lakers, 100-113 </PS_Listing> <PS_Listing> 04/21 - L vs. Memphis, 105-111 (OT) POFF 04/20 - W vs. Dallas, 90-85 POFF </PS_Listing> <PS_Listing> 04/24 - L at Memphis, 95-98 (OT) POFF 04/23 - L vs. Dallas, 92-113 POFF </PS_Listing> <PS_Listing> 04/26 - W at Memphis, 92-89 (OT) POFF 04/26 - L at Dallas, 108-109 POFF </PS_Listing> <PS_Listing> 04/29 - L vs. Memphis, 99-100 (OT) POFF 04/28 - W at Dallas, 93-89 POFF </PS_Listing> <PS_Listing> 05/01 - W at Memphis, 104-84 POFF 04/30 - W vs. Dallas, 109-103 POFF </PS_Listing> <PS_Listing> 05/03 - W vs. Memphis, 120-109 POFF 05/02 - L at Dallas, 111-113 POFF </PS_Listing> <PS_Listing> 05/05 - L vs. LA Clippers, 105-122 POFF 05/04 - W vs. Dallas, 119-96 POFF </PS_Listing> <PS_Listing> 05/07 - W vs. LA Clippers, 112-101 POFF 05/06 - W vs. Portland, 116-92 POFF </PS_Listing> <PS_Listing> 05/09 - W at LA Clippers, 118-112 POFF 05/08 - W vs. Portland, 114-97 POFF </PS_Listing> <PS_Listing> 05/11 - L at LA Clippers, 99-101 POFF 05/10 - W at Portland, 118-103 POFF </PS_Listing> <PS_Listing> 05/13 - W vs. LA Clippers, 105-104 POFF 05/12 - L at Portland, 92-103 POFF </PS_Listing> <PS_Listing> 05/15 - W at LA Clippers, 104-98 POFF 05/14 - W vs. Portland, 104-82 POFF </PS_Listing> <PS_Listing> 05/19 - L at San Antonio, 105-122 POFF 05/19 - W vs. Okla City, 122-105 POFF </PS_Listing> <PS_Listing> 05/21 - L at San Antonio, 77-112 POFF 05/21 - W vs. Okla City, 112-77 POFF </PS_Listing> <PS_Listing> 05/25 - W vs. San Antonio, 106-97 POFF 05/25 - L at Okla City, 97-106 POFF </PS_Listing> <PS_Listing> 05/27 - W vs. San Antonio, 105-92 POFF 05/27 - L at Okla City, 92-105 POFF </PS_Listing> <PS_Listing> Note - All statistics are regular season except where noted. </PS_Listing> <PS_Note>Note - * - If necessary.</PS_Note> <PS_Listing> 05/29 12:22:17 ET </PS_Listing> </Playoff_Series> May 29, 2014, at 12:24 PM ET \ No newline at end of file diff --git a/test/xml/gameinfo/mlbpreviewxml.dtd b/test/xml/gameinfo/mlbpreviewxml.dtd new file mode 100644 index 0000000..dc4aac1 --- /dev/null +++ b/test/xml/gameinfo/mlbpreviewxml.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/mlbpreviewxml.xml b/test/xml/gameinfo/mlbpreviewxml.xml new file mode 100644 index 0000000..3f56f95 --- /dev/null +++ b/test/xml/gameinfo/mlbpreviewxml.xml @@ -0,0 +1,135 @@ + + + +16451229 +AAV!PREVIEW-STL-PIT +34056 +34056 +Previews +MLB + +St. Louis Cardinals (71-57) at Pittsburgh Pirates (68-60), 7:05 p.m. (ET) + +08/28/2012 +07:05 PM +St. Louis +Pittsburgh +St. Louis - Jake Westbrook +Pittsburgh - James McDonald + + +

+ (Sports Network) - Pittsburgh Pirates starter James McDonald followed up one + his better starts this year -- a win over the St. Louis Cardinals -- with a + forgettable beginning to his most recent outing. + +

+

+ McDonald tries to get off on a better foot on Tuesday evening and get the + Pirates back on track as they to avoid falling further behind the Cardinals in + the standings. + +

+

+ The right-handed McDonald gets the call for the second contest of this three- + game set between NL Central rivals having beaten the Cardinals back on Aug. + 17. However, it is the only win for the Pirates hurler in his last six starts. + +

+

+ McDonald logged six scoreless innings in the win over St. Louis, scattering + two hits and walking three with seven strikeouts to claim a 2-1 decision. + After reliever Chris Resop allowed a run and two hits in two-thirds of an + inning, Juan Cruz, Jason Grilli and Joel Hanrahan combined to toss 2 1/3 + hitless innings. + +

+

+ The 27-year-old struggled in his last outing on Wednesday against the San + Diego Padres, giving up four runs on five hits and five walks with only two + strikeouts in five innings. Three of the runs McDonald allowed came in the + first, when he walked the bases loaded. + +

+

+ "I felt like I was getting better as the game went on," said McDonald. "I was + able to get my breaking ball down, my fastball was going where I wanted it to. + Just a rough beginning but I felt like I ended strong." + +

+

+ McDonald is still a solid 11-6 with a 3.73 earned run average in 25 games this + season and 3-1 with a 2.76 ERA in nine career meetings with the Cardinals, + including five starts. + +

+

+ St. Louis starter Jake Westbrook took a tough-luck loss when he squared off + against McDonald, then saw his offense bail him out in a victory last week. + +

+

+ Against the Pirates, Westbrook had a five-start winning streak end even though + he gave up just two runs -- one earned -- over 7 2/3 frames. + +

+

+ The righty quickly returned to the win column on Thursday against the Houston + Astros despite yielding five runs over five innings. He got plenty of support + in a 13-5 win. + +

+

+ Westbrook, 34, improved to 13-9 with a 3.67 ERA in 25 starts this season, but + sits at just 1-6 lifetime versus the Pirates in 12 meetings (8 starts). + +

+

+ The Cardinals took the opener of the set on Monday by a 4-3 margin, with Matt + Holliday hitting a go-ahead solo homer in the sixth inning. + +

+

+ "I like opposite-field home runs. It means my swing is in a good spot," + Holliday said after driving in his NL high-tying 90th run of the season. + +

+

+ The Cardinals have now won six of seven since losing a 19-inning game to the + Pirates on Aug. 19. That has them six games behind the Cincinnati Reds for + first place in the NL Central and 2 1/2 games up on the Los Angeles Dodgers + for the league's second wild card position. + +

+

+ The Pirates, meanwhile, have lost six of seven since their marathon win and + are three games back of the Cardinals. + +

+

+ A.J. Burnett suffered Monday's loss after allowing four runs -- three earned + -- on seven hits in 5 2/3 innings. + +

+

+ "I wasn't able to have shutdown innings," Burnett said. + +

+

+ Andrew McCutchen drove in a run for the Pirates, who were without second + baseman Neil Walker after he was a late scratch due to lower back tightness. + +

+

+ The Cardinals, meanwhile, could have third baseman David Freese back in the + lineup tonight for the first time since he hurt his left wrist on Friday. + +

+

+ The Pirates and Cardinals split 12 meetings this season prior to this series. + +

+ + + August 28, 2012, at 10:41 AM ET +
diff --git a/test/xml/gameinfo/nbapreviewxml.dtd b/test/xml/gameinfo/nbapreviewxml.dtd new file mode 100644 index 0000000..714cfc3 --- /dev/null +++ b/test/xml/gameinfo/nbapreviewxml.dtd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/nbapreviewxml.xml b/test/xml/gameinfo/nbapreviewxml.xml new file mode 100644 index 0000000..e7d8c4d --- /dev/null +++ b/test/xml/gameinfo/nbapreviewxml.xml @@ -0,0 +1 @@ + 21167166 ACV!PREVIEW-SAN-OKC 19762 19762 Previews NBA (1) San Antonio Spurs (2-0) at (2) Oklahoma City Thunder (0-2), 8:30 p.m. (ET) 05/25/2014 08:30 PM San Antonio Oklahoma City

(SportsNetwork.com) - The Oklahoma City Thunder will try to make it a competitive series against the San Antonio Spurs Sunday night when Game 3 of the Western Conference finals shifts to Chesapeake Energy Arena.

The Thunder badly need a lift and they may get one on Sunday.

Serge Ibaka, who missed the first two games and was expected to miss the entire postseason with a calf strain, improved significantly and has been upgraded to "day-to-day."

"The abundance of blood and therefore swelling in Serge's calf has reduced substantially and unexpectedly, allowing a level of movement and stability not thought possible after the initial diagnosis," OKC general manager Sam Presti said in a release. "With this new information, and in an effort to keep his status current, we are now listing him as day-to-day with the understanding that there is a possibility for him to play in this series."

"I'm waiting what the doctor going to tell me and how my body going to feel," Ibaka said after Saturday's practice, acknowledging pain is more of a concern than further injury.

Oklahoma City desperately needs him.

The Spurs marched to a 2-0 series lead and have done so in convincing fashion. San Antonio has won the two games by an average of 26 points, thanks in large part to Wednesday's 112-77 drubbing in Game 2.

Tim Duncan, Tony Parker and Manu Ginobili made history on Wednesday night and led the Spurs to another win. San Antonio's Big 3 combined for 47 points and the trio passed Magic Johnson, Kareem Abdul-Jabbar and Michael Cooper as the all-time winningest trio in NBA playoff history, winning their 111th postseason game together.

Parker scored a game-high 22 points, Duncan went for 14 with 12 rebounds and Ginobili added 11 points off the bench in the blowout, as the Spurs leave the comfy confines of AT&T Center for Oklahoma City.

In league history, 94 percent of teams to open a seven-game set 2-0 have gone on to advance.

The Spurs sadly know all about the six percent.

San Antonio held this exact margin in the 2012 Western Conference finals against Oklahoma City, only to lose the next four and watch the Thunder lose to the Miami Heat in the NBA Finals.

"We know what we're walking into," Duncan said. "They're so much better at home. They're going to have a lot of days to let it all fester."

Duncan also racked up just under 29 minutes, passing Abdul-Jabbar for second most playoff minutes in league history in the process. Duncan is just 27 minutes back of Kobe Bryant's all-time mark of 8,641 and barring injury will pass him later in this series.

Danny Green made 7-of-10 from 3-point range for the Spurs, who won Monday's Game 1, 122-105. He finished with 21 and Boris Diaw was the other San Antonio player in double figures with 11.

Kevin Durant and Russell Westbrook didn't do nearly enough to make up for Ibaka's absence. The MVP and his electric point guard netted just 15 points apiece on 16 and 24 shots, respectively. The other three OKC starters only scored four points between them.

"We're disappointed in our performance. We have to make a few adjustments and come back better," Thunder head coach Scott Brooks said. "We will continue to figure things out as a group like we always have done and come back Sunday and play a much better basketball game."

The Thunder led 26-24 after the first quarter but were outscored 88-51 the rest of the way.

The poor play has led to some blowups on the floor for OKC. At the end of the first half, when the game started getting out of hand for the Thunder, prior to a timeout, Westbrook and Durant got into a heated exchange.

"I was just getting on Kevin about some stuff and he got on me right back," explained Westbrook. "And that's what teammates do. That's what leaders do. We get on each other, we come back and we talk about it, and then we come out like nothing ever happened."

The two have combined to shoot 35-for-80 from the field in the first two games. Westbrook has taken 10 more shots than the league MVP.

Game 4 will be Tuesday night in Oklahoma City.

May 25, 2014, at 10:18 AM ET
\ No newline at end of file diff --git a/test/xml/gameinfo/nhlpreviewxml.dtd b/test/xml/gameinfo/nhlpreviewxml.dtd new file mode 100644 index 0000000..714cfc3 --- /dev/null +++ b/test/xml/gameinfo/nhlpreviewxml.dtd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/nhlpreviewxml.xml b/test/xml/gameinfo/nhlpreviewxml.xml new file mode 100644 index 0000000..1803ed7 --- /dev/null +++ b/test/xml/gameinfo/nhlpreviewxml.xml @@ -0,0 +1 @@ + 21193847 ADV!PREVIEW-CHI-LOS 19153 19153 Previews NHL Chicago Blackhawks (2-3) at Los Angeles Kings (3-2), 9 p.m. (ET) 05/30/2014 09:00 PM Chicago Los Angeles

(SportsNetwork.com) - The Chicago Blackhawks weren't ready to give up on their dreams of winning consecutive Stanley Cup titles the last time out. The defending champions hope to stay alive for a second straight time on Friday when they visit the Los Angeles Kings for Game 6 of the Western Conference finals.

The Blackhawks are attempting to return to the Cup Finals after falling behind three games to one in this postseason battle against Los Angeles. The Kings, who lost in five games to Chicago in last spring's conference finals, couldn't close out the Hawks in their first attempt on Wednesday, dropping a 5-4 double-overtime decision in the Windy City.

Chicago, which is trying to become the first team to win consecutive titles since Detroit in 1997 and '98, improved to 8-1 as the host in these playoffs with the Game 5 triumph, but it will have to win its first road game of the series to keep on playing. The Kings won Game 3 at the Staples Center by a 4-3 score and pushed their series lead to 3-1 with a 5-2 decision Monday night in the City of Angels.

All told, Los Angeles is 5-3 as the host this postseason and is 19-7 in home playoff games since the start of the 2012 playoffs, when the Kings won their only Stanley Cup title.

If the Blackhawks win Friday the clubs will meet Sunday evening in Chicago for a decisive Game 7.

Michal Handzus, a former L.A. King, provided the OT heroics for Chicago on Wednesday, scoring at 2:04 of the second overtime to send the series back to the Staples Center. Brandon Saad held the puck along the right wing below the circles and dished ahead to Handzus, who controlled the disc for a second before lifting a backhander under the crossbar to end the contest.

"Two guys went on him and I got open,"Handzus said of his linemate Saad. "I was surprised I got open like that but he waited and waited and gave me a great pass."

For Handzus, it was his first career postseason overtime score, and just his second playoff game-winner after recording the only goal in a 1-0 Flyers victory against Ottawa in the 2003 second round.

Saad ended up with a goal and two assists for the Blackhawks, who wasted a pair of early two-goal leads and fell behind by a goal before rallying to extend the series.

"We don't want the season to end now. We're having too much fun playing," Saad admitted.

Brent Seabrook, Johnny Oduya and Ben Smith also scored, while Patrick Kane notched a career playoff-high four helpers for Chicago. Kane became the first Blackhawk to assist on four goals in one playoff game since Steve Larmer did so on April 30, 1990 in a Norris Division final-clinching 8-2 rout of the St. Louis Blues .

Kane hasn't scored a goal since getting the OT winner and series clincher in Game 6 of Chicago's second-round series against Minnesota, but the reigning Conn Smythe winner has posted five assists over the last two games.

Corey Crawford looked shaky at times, but emerged with the win thanks to 40 saves.

On Thursday's off day, Blackhawks captain Jonathan Toews talked about keeping the pressure on Los Angeles from the start of tonight's battle.

"We're going to work on getting our first win on the road against this team," said Toews. "We want to stay with the mentality, that we're putting all the pressure on them. It's going to be tough for them to close it out and win that fourth game against us. We showed how resilient of a group we are last night. We're going to do it again."

Dustin Brown, Marian Gaborik, Jarret Stoll and Tanner Pearson lit the lamp for L.A. Pearson's tally extended his point streak to six games, matching the Kings' postseason record for a rookie along with Warren Rychel (1993) and Daryl Evans (1982).

L.A. has the comfort of home ice on Friday to try and reach the Stanley Cup Finals for the second time in the last three seasons, but the club knows the fourth win of a series can be extremely hard to come by.

"If anyone thinks that it's easy ... it's not easy," Kings forward Justin Williams said of closing out an opponent in the third round. "Attaining your ultimate goal is never easy and we're going to do our best to get it done."

Jonathan Quick took the loss despite stopping 40 pucks.

Kane had a hand in all three Blackhawk scores in the opening 20 minutes on Wednesday before notching the secondary assist on Handzus' winner. However, after going up by scores of 2-0 and 3-1 in the opening period, the Blackhawks found themselves down 4-3 heading into the final stanza of regulation, but Smith scored early in the third to even things.

Saad fired a low shot from the left wing that was kicked aside by Quick, but Smith beat his checker and potted the rebound for a 4-4 game just 77 seconds into the third period. The Blackhawks had a prime chance to win in regulation when Stoll committed a tripping infraction with 3:11 on the clock. Quick made two acrobatic stops, one from Kane and the rebound on Bryan Bickell early in the advantage and added two more before its completion.

Acting on adrenaline and instinct, the first overtime featured a dozen quality chances split between the clubs. Los Angeles claimed a 10-8 shot edge in a briskly-paced fourth period.

"Overtime, I've seen a lot of games, been involved in a lot of those," said Chicago head coach Joel Quenneville. "That might have been the greatest overtime I've seen."

The Blackhawks have come back from down 3-1 to win a series only once in their history, but it was last spring against Detroit, which won three of the first four games against Chicago in the Western Conference semifinals before losing the final three tilts. The Blackhawks also needed to win Game 7 in overtime to down the Red Wings.

May 30, 2014, at 10:33 AM ET
\ No newline at end of file diff --git a/test/xml/gameinfo/recapxml.dtd b/test/xml/gameinfo/recapxml.dtd new file mode 100644 index 0000000..b2c379e --- /dev/null +++ b/test/xml/gameinfo/recapxml.dtd @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/recapxml.xml b/test/xml/gameinfo/recapxml.xml new file mode 100644 index 0000000..0ad6471 --- /dev/null +++ b/test/xml/gameinfo/recapxml.xml @@ -0,0 +1 @@ + 21201550 AAD;RECAP-TEX-WAS 39978 39978 Recaps MLB MLB Game Summary - Texas at Washington Texas2 Washington10

Washington, DC (SportsNetwork.com) - Doug Fister tossed six solid innings and the Washington Nationals hit four home runs in a 10-2 victory over the Texas Rangers on Saturday.

Anthony Rendon, Scott Hairston, Adam LaRoche and Jose Lobaton homered for the Nationals, who have won the first two contests of this three-game series by a combined score of 19-4. Rendon went 4-for-5 with three runs scored.

Fister (3-1) allowed two runs on four hits while striking out six to win his third straight start.

Mitch Moreland and Rougned Odor each knocked in a run for the Rangers, who saw starter Nick Tepesch (2-1) give up five runs -- four earned -- on seven hits over two innings.

Rendon got Washington's offense going with a solo homer to left in the first inning.

The Nationals tacked on four more runs in the second. Danny Espinosa doubled to left-center field and crossed the plate on Lobaton's home run to right- center field. With two outs, Denard Span singled to right-center field and Rendon reached base on an infield single. Both runners scored on Jayson Werth's double to left that resulted in a Shin-Soo Choo fielding error.

LaRoche's three-run homer in the fourth made it an 8-0 game.

Texas finally got on the board in the fifth. Alex Rios walked, moved to second on Leonys Martin's groundout and raced home on Odor's bloop double to right.

The Rangers got another run back in the sixth when Choo scored on Moreland's single to right-center field. Choo reached base on a double.

But the Nationals hit another homer in the bottom half of the sixth. Rendon singled and scored on pinch-hitter Hairston's homer inside the left-field foul pole. It was Hairston's first homer of the season.

Texas' Scott Baker allowed five runs on five hits over five innings of relief ... Washington had 12 hits ... The Rangers are now 6-4 on an 11-game road trip ... Tepesch had won two straight decisions. May 31, 2014, at 03:13 PM ET
\ No newline at end of file