Displaying corresponding XML nodes from different blocks

nsane

New Member
lets say I have the following XML block..\[code\]<items> <books> <book> <name>a</name> <author>b</author> </book> <book> <name>d</name> <author>e</author> </book> </books> <infos> <info> <id>1</id> <year>c</year> </info> <info> <id>2</id> <year>f</year> </info> </infos></items>\[/code\]Where each instance of 'info' corresponds to an instance of 'book'. If items/infos/info/id refers to the position of a book element.
I'm trying to output the following... \[code\]a b c def\[/code\]Thanks in advance... Any help would be apprechiated!
 
Top