On 7 November 2013 11:18, Neil Sedger alug@moley.org.uk wrote:
I like XPath! The w3schools tutorial is OK.
Thanks, I'll take a look.
xmllint xmltest.xml --xpath '//Unit[UnitType="Type2"]/SerialNumber/text()'
That's almost perfect, thanks! It certainly finds all the data, but at the moment it's stringing it all together in one long string (no whitespace of any kind between results). How do I format it?
Mark