Ive got some data that looks like this: <data> <apple size="12"/> <orange size="15"/> <pear size="16"/> </data> The XPath expression //@size will return this: 12 15 16 What is the XPath expression that will return this: apple orange pear