photo gallery
getElementsByTagName() -- Gets elements by tagname // nodeValue : The value of this node, depending on its type. // Load XML File. You can use loadXML if you wish to load XML data from a string $objDOM = new DOMDocument(); $objDOM->load($_SERVER['DOCUMENT_ROOT']."/y2k10/photogallery.xml"); //make sure path is correct $gallery = $objDOM->getElementsByTagName("gallery"); // for each note tag, parse the document and get values for // tasks and details tag. foreach( $gallery as $value ) { $titles = $value->getElementsByTagName("title"); $title = $titles->item(0)->nodeValue; $thumbs = $value->getElementsByTagName("thumb"); $thumb = $thumbs->item(0)->nodeValue; $paths = $value->getElementsByTagName("gallerypath"); $path = $paths->item(0)->nodeValue; echo '
'; echo '
'; echo '
'; echo ''; echo '
'; } ?>
Lovely's shocking offer for Sikandar in Kulfi Kumar Bajewala
The ongoing track of Kullfi Kumarr Bajewala is filled with drama, as Kullfi is t...
This is why ace singer Arjun Kanungo is upset with Niti Taylor
MUMBAI: Arjun Kanungo is one of the most popular and successful singers these da...
Salman Khan and Katrina Kaif to star in Tiger Zinda Hai 3
MUMBAI: Salman and Katrina are one of the most loved Bollywood couples. Whether ...