XML parser needs fixing