R programming XML: accessing duplicate node

Gunddednele

New Member
I would like to access a node which has been duplicated in an xml fileHere is part of the file i am using\[code\]</tig><aug> <au>Lee, Kuei-Chiu</au> <au>Chang, Yu-Hui</au></aug>\[/code\]When i used the following code i can only access the first name\[code\] authors=xmlSApply(r,function(x) xmlValue(x[['header']][['controlInfo']][['artinfo']][['aug']][['au']]))\[/code\]Is there a way to index the second 'au' part of this node(i.e Chang, Yu-Hui) ?Many thanks Barry
 
Back
Top