bullitkatcher
New Member
I'm trying to write a xml sitemap generator. Everything is working except one tagits good but the problem is that google sitemap format includes < image:image> tag, which Im failed to get.here is what I tried to get < image:image>:\[code\] $image = $doc->createElement( "image:image" ); $imageloc = $doc->createElement( "image:loc" ); $imageloc->appendChild( $doc->createTextNode( $imageurl."/".$link['id'].".jpg" ) ); $b->appendChild( $imageloc ); $b->appendChild( $image );\[/code\]and the result is:\[code\]<image:loc>http://site.com/uploads/2.jpg</image:loc><image:image/>\[/code\]but the right code should look like this:\[code\]<image:image><image:loc>http://site.com/uploads/2.jpg</image:loc><image:image/>\[/code\]the first code I mentioned above is just adding a closing tag at the end and nothing at the start there. please tell me how do I do?