server: Fixed XmlParser to always use regexes with known terminators, so that they aren't satisfied by incomplete data.