How can I put multiple RSS feeds from SimpleXML into an array sorted by pubDate? Example: feed[0] = \'http://www.example.org/feed1.rss\';
object(SimpleXMLElement)#1 (3) { [\"@attributes\"]=> array(1) { [\"responsecode\"]=> string(3) \"200\"
I\'m parsing an RSS feed that has an ’ in it. SimpleXML turns this into a ’. What can I do to stop this?
Error: Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 3: parser error : Input
I have been building an API which returns XML code. For example, the API will return: <message>hello, this is a message & it used htmlsepcialchars</message>
Given this XML/XHTML snippet: <h1> <zuq:data name=\"siteHeader\" /> </h1> <h2> <zuq:data name=\"pageHeaderName\" />
I can\'t seem to get PHP\'s SimpleXML class to recognize prefixed namespace elements in an XHTML document. Here\'s my example:
I\'ve used the following code to do an XSLT in php: # LOAD XML FILE $XML = new DOMDocument(); $XML = simplexml_load_file(\"images开发者_StackOverflow/upload/source.xml\");
This is really baffling me. I\'ve never used XML before, so I\'m just playing about (it\'s the middle of the night of course...!)
Just getting started with XPath, and using it\'s implementation with PHP\'s SimpleXML objects. Right now I\'m using //zuq:* to create an array of SimpleXML objects with the zuq prefix in a given docum