You're using xml.entry.id, but <entry> is the root element.
xml.id.toString() should give you what you want.
> Maybe it has something to do with namespaces (the feed contains
> elements like<dc:identifier>text</dc:identifier>)?
No, but E4X is namespace-aware, so you'll need to handle the namespaces
to get the data out of those elements:
That means you'll only have access to those elements.
Bruce
I don't use E4X, but your code here seems wrong to me. Shouldn't you
be iterating through a loop to gather the identifiers? See, for
example:
<http://www.morearty.com/blog/2007/03/13/common-e4x-pitfalls/>
Bruce
Bruce
b) As said earlier, I based my translator on the NCBI Pubmed translator. Something strange is going on which baffles me. There is a line which I can't remove (if I do, I get the error "message => xml.title[0] is undefined"). It's within an if-statement that is never true, so I don't understand what goes wrong there.