में परिवर्तित नहीं किया जा सका, मैं एक एक्सएमएल आरएसएस प्रवाह को पार्स करने का प्रयास करता हूं। वास्तव में, एक त्रुटि फेंक दिया जाता है:वर्ग डोमेलेमेंट का ऑब्जेक्ट स्ट्रिंग
Catchable fatal error: Object of class DOMElement could not be converted to string in ...
मैं टैग "लिंक"
यहाँ का मूल्य "परीक्षण" प्राप्त करना चाहते हैं मेरे कोड है:
//check if url contents xml
$content = file_get_contents($flux);
$xml = new DOMDocument;
$xml->loadXML($content);
//get the link
$link = $xml->getElementsByTagName('link')->item(0);
echo $link;
यहाँ प्रवाह है:
<?xml version="1.0" encoding="ISO-8859-15" ?>
<rss version="2.0">
<channel>
<title>test</title>
<link>http://test.fr</link>
</channel>
</rss>
कोई भी मेरी मदद कर सकता है?
संभव मदद: http://stackoverflow.com/questions/548744/php-xpath-question – diEcho