you might want to consider using `Zotero.Utilities.xpathText` or `ZU.xpathText` instead of this. http://www.zotero.org/support/dev/translators/coding#utility_functions