Use getElementsByTagNameNS(). Once you subscript the element you need, you can access its content with .textContent.
var d = "http://schemas.microsoft.com/ado/2007/08/dataservices";
var items = xmlStr.getElementsByTagName(d, "Attachment");
var attachment = items[0].textContent;