Xpath.class.php (help on php XPATH)

im using the XPath.class.php Xpath class for php

If figured out how to select a single data item…but how do i select multiple nodes


<xml>
   <news>
        <headline>headline1</headline>
        <content>this is news1</content>
   </news>
   <news>
        <headline>headline2</headline>
        <content>this is news2</content>
   </news>
    <news>
        <headline>headline3</headline>
        <content>this is news3</content>
   </news>
</xml>

how would i create an array of all the headlines? with XPath.class.php

or if someone knows of a better way to handle XML in php…