Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PHP
$xml = new DOMDocument();
$xml->load('xml.php.xml');
$feed = array();
foreach ($xml->getElementsByTagName('Listing') as $node) 
{
  $Image=$node->getElementsByTagName('Image')->item(0)->nodeValue;
  echo($Image)
}


This image tag contain some xml tags
i would like to print inner xml text of this image tag
like
"
HTML
<imagename>j.jpg</imagename>
<format>jpg</format>
"



using this code only i can print values only
"
j.jpgjpg
"
Posted
Updated 18-May-14 21:58pm
v3

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900