How to make Web Crawler to pull some information from site and that information put in xml tag Crawler

In my pictures show site and where i put the information in tag.

Please some help!

i make this code:

<?php
include_once('simple_html_dom.php');
$html = new simple_html_dom();
$html->load_file($target_url = 'http://www.popusti.rs');
$glavnidiv = "div[class=offer-list-item]";

foreach($html->find($glavnidiv) as $post)
{
echo $post;
}

?>

this code show me all what i need but how to make loops to the children div show and lot a div in examle:
echo "< name >" . $post . < /name >; // ---- div[class=offer-list-item]
echo "< pictures >" . $post . < /pictures >; // ---- div[class=offer-pictures]

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.