Solved the problem with there being a space between the value section of an attribute of the XML tag.