Hi, Given an xml structure:
<Person> <Relationships> <NamedAuthority> <Type>Subject</Type> <Id>032-001946363</Id> </NamedAuthority> <NamedAuthority> <Type>Subject</Type> <Id>037-001946370</Id> </NamedAuthority> <NamedAuthority> <Type>Author</Type> <Id>040-001959713</Id> </NamedAuthority> <NamedAuthority> <Type>Author</Type> <Id>040-001959829</Id> </NamedAuthority> <NamedAuthority> <Type>Subject</Type> <Id>032-001961797</Id> </NamedAuthority> <NamedAuthority> <Type>Author</Type> <Id>040-001961798</Id> </NamedAuthority> </Relationships> </Person> I’m trying to use the XPathEntityProcessor to put all the Subject Id’s into one multiValued field and the Author Id’s into another. I was hoping I could use field’s with the following, but the XPath does not seem to be supported. <field column="SubjectRelationships" xpath=" /Person/Relationships/NamedAuthority /Type[.='Subject']/following-sibling::Id” /> <field column="AuthorRelationships" xpath=" /Person/Relationships/NamedAuthority /Type[.='Author']/following-sibling::Id” /> Could anyone suggest a way for me to achieve this. Many Thanks. ****************************************************************************************************************** Experience the British Library online at www.bl.uk<http://www.bl.uk/> The British Library’s latest Annual Report and Accounts : www.bl.uk/aboutus/annrep/index.html<http://www.bl.uk/aboutus/annrep/index.html> Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook<http://www.bl.uk/adoptabook> The Library's St Pancras site is WiFi - enabled ***************************************************************************************************************** The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the postmas...@bl.uk<mailto:postmas...@bl.uk> : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. ***************************************************************************************************************** Think before you print