Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #44.2K
~238 People Reached
Favorite Forums
Favorite Tags
php x 4
Member Avatar for softwareconsl

<?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement($string); echo $xml->asXML(); $result = $xml->xpath('/a/b/c'); while(list( ,$node) = each($result)) { echo $node->asXML($result); } need this output: <c>text</c> <c>stuff</c> <>code</c>

Member Avatar for briele
0
238