XPath in PHP
Posted: Wed Apr 04, 2007 8:13 pm
I got the XPath.class.php class file and am using it and i can select single data easy but how can I select an array of matches?
Xpath->getData("/xml/*/headline")
gives me an error that there is more than one match(which there is ...but how can i make it return an array of nodes that match or something simillar?)
not sure how clear that was...its for a CMS news System
Xpath->getData("/xml/*/headline")
gives me an error that there is more than one match(which there is ...but how can i make it return an array of nodes that match or something simillar?)
not sure how clear that was...its for a CMS news System