SimpleXML Problems Example - Mixed Content
Output of simplexml_problems_mixed.php:
--- String representation --- This is a text with a and part and a one. --- Root Elements --- object(SimpleXMLElement)#1 (2) { ["strong"]=> array(2) { [0]=> string(4) "bold" [1]=> string(12) "second bold " } ["em"]=> string(7) "italics" } --- Iterate --- bold italics second bold --- asXML() --- <?xml version="1.0"?> <body> This is a text with a <strong>bold</strong> and <em>italics</em> part and a <strong>second bold </strong> one. </body>
 
SimpleXML Problems Example - Interop with DOM © copyright 2004  Bitflux GmbH