i am trying to get some data from xml file with regex (i know that i should propably use some xml parser, but regex seems more simple if you havent used any xml parsers before)

Here's my python code:

```
import datetime,re
date= datetime.datetime.today().strftime('%Y%m%d')

output = open(r'C:\Users\Peter\AppData\Roaming\Kodi\addons\plugin.video.videoaddon\resources\epg.xml', 'r')
match = re.compile('start="%s(.+?)\s.+?".+?channel="Bravo (US)"\s><title>(.+?)</title>'%(date)).findall(output)
for start,title in match:
    print(start,title)

```

I get `TypeError: Expected string or buffer`

Can anyone explain why I get this error?

Additional info what I am trying to do, if someone is interested:

XML file example: <http://pastebin.com/9yC1FTYu>
I know that this xml isn't well formatted, but that's how I get it from the software API.

Basically I need to get: 
Last part of `start` timestamp, first part must match date, and the `<title>` text. And I need to get these where `channel` matches `Bravo (US)`.