Some name fields are optional in the XML API, take this into account