On 07/15/09 13:42, "Christiaan Hofman" <cmhof...@gmail.com> wrote:

> 
> On Jul 15, 2009, at 8:24 PM, Maxwell, Adam R wrote:
> 
>> On 07/15/09 11:09, "Christiaan Hofman" <cmhof...@gmail.com> wrote:
>> 
>>>>   while (node = [nodeEnum nextObject]) {
>>>>       if ([node kind] == NSXMLElementKind && [node
>>>> attributeForName:@"title"] != nil)
>>>>           [dataArray addObject:[[node attributeForName:@"title"]
>>>> XMLString]];
>>>>   }
>>>> 
>>> 
>>> Somehow I can't get that to work. It finds the nodes, but can't parse
>>> them.
>> 
>> I'm using a download of your xpath code with the attached diffs.
>> I've no
>> idea why it wouldn't work for you; I tried citeulike and one of the
>> libraries that Sven mentioned in comments.
>> 
>> The only substantive changes are the dataArray condition and the DOI
>> parsing
>> (using same code as BibItem).
>> 
>> < 
>> diff 
>> .txt 
>>> 
>> 
----------------------------------------------------------------------------->>
-
> 
> Actually, the change I had to make to have it work is to use "&"
> instead of "&amp;", because that was already resolved by the XML stuff.

This is because you're using stringValueOfAttribute: instead of the code I
posted...and why I mentioned the need to use the XML string.


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Bibdesk-develop mailing list
Bibdesk-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to