Some small changes:
- Strip off anything that can come after the xml content (XBMC nfo file can contain URLs at the end of a file).
- Remove useless for loop
- Change error message to display correct XML tag :)