From: Michael Orlitzky Date: Mon, 23 Jun 2014 19:31:56 +0000 (-0400) Subject: Add SportInfo support for wnbastandxml.dtd. X-Git-Tag: 0.0.6~77 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=daabc4612128bb9ce5adcce9927f2aff63d09632;p=dead%2Fhtsn-import.git Add SportInfo support for wnbastandxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 0966ef8..044debd 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -364,6 +364,8 @@ WNBAMinutesXML.dtd WNBAReboundsXML.dtd .IP \[bu] WNBAScorersXML.dtd +.IP \[bu] +wnbastandxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/wnbastandxml.dtd b/schema/wnbastandxml.dtd new file mode 100644 index 0000000..a851852 --- /dev/null +++ b/schema/wnbastandxml.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/wnbastandxml/wnbastandxml.xml b/schemagen/wnbastandxml/wnbastandxml.xml new file mode 100644 index 0000000..9552e1a --- /dev/null +++ b/schemagen/wnbastandxml/wnbastandxml.xml @@ -0,0 +1,91 @@ + + + +2011 +BUL!WNBA-STANDINGS +Standings +BASK-W + ++Indiana +2212.647--- +14-38-917-5Lost 2 +y + ++Atlanta +1816.5294 +12-56-1110-12Lost 1 +x + ++Detroit +1816.5294 +11-67-1011-11Won 2 +x + ++Chicago +1618.4716 +12-54-1310-12Lost 1 + + ++Connecticut +1618.4716 +12-54-1310-12Won 1 + + ++Washington +1618.4716 +11-65-1210-12Lost 1 +x + ++New York +1321.3829 +8-95-129-13Won 1 + + + + ++Phoenix +2311.676--- +12-511-613-7Lost 1 +y + ++Seattle +2014.5883 +13-47-1013-7Won 1 +x + ++Los Angeles +1816.5295 +11-67-1011-9Won 3 +x + ++San Antonio +1519.4418 +10-75-1210-10Lost 1 +x + ++Minnesota +1420.4129 +9-85-127-13Lost 2 + + ++Sacramento +1222.35311 +7-105-126-14Won 1 + + + + September 27, 2009, at 07:50 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index c2e614d..2cba4d2 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -210,7 +210,7 @@ dtds = "WNBAMinutesXML.dtd", "WNBAReboundsXML.dtd", "WNBAScorersXML.dtd", - "wnbastandxml.dtd", -- no dtd + "wnbastandxml.dtd", "WNBAStealsXML.dtd", -- no dtd "WNBATurnoversXML.dtd" -- no dtd ] @@ -443,7 +443,8 @@ sport_info_test_files = "WNBAFTPctXML.xml", "WNBAMinutesXML.xml", "WNBAReboundsXML.xml", - "WNBAScorersXML.xml" + "WNBAScorersXML.xml", + "wnbastandxml.xml" ] diff --git a/test/xml/sportinfo/wnbastandxml.dtd b/test/xml/sportinfo/wnbastandxml.dtd new file mode 100644 index 0000000..a851852 --- /dev/null +++ b/test/xml/sportinfo/wnbastandxml.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/wnbastandxml.xml b/test/xml/sportinfo/wnbastandxml.xml new file mode 100644 index 0000000..9552e1a --- /dev/null +++ b/test/xml/sportinfo/wnbastandxml.xml @@ -0,0 +1,91 @@ + + + +2011 +BUL!WNBA-STANDINGS +Standings +BASK-W + ++Indiana +2212.647--- +14-38-917-5Lost 2 +y + ++Atlanta +1816.5294 +12-56-1110-12Lost 1 +x + ++Detroit +1816.5294 +11-67-1011-11Won 2 +x + ++Chicago +1618.4716 +12-54-1310-12Lost 1 + + ++Connecticut +1618.4716 +12-54-1310-12Won 1 + + ++Washington +1618.4716 +11-65-1210-12Lost 1 +x + ++New York +1321.3829 +8-95-129-13Won 1 + + + + ++Phoenix +2311.676--- +12-511-613-7Lost 1 +y + ++Seattle +2014.5883 +13-47-1013-7Won 1 +x + ++Los Angeles +1816.5295 +11-67-1011-9Won 3 +x + ++San Antonio +1519.4418 +10-75-1210-10Lost 1 +x + ++Minnesota +1420.4129 +9-85-127-13Lost 2 + + ++Sacramento +1222.35311 +7-105-126-14Won 1 + + + + September 27, 2009, at 07:50 PM ET +