var line; while((line = Zotero.read()) !== false)) {
and then use
var parser = new DOMParser();
var doc = parser.parseFromString(text, "text/xml");
Or is there a more elegant solution?
Without code diving, I can't say whether there's a more elegant solution.
If Simon can chip in here, it'd be good to get a full listing of what
input formats can be specified, so we can update the docs accordingly.
Avram