i have done it with the help of xml helper and it works fine for me.. in order to make something like <media:content url="http://www.abc.com" type= "video/quicktime"> . . .</media:content>
it can be done as.. $url = Router::url(array('controller'=>'controller', 'action'=>'view', 'name1'=>$entity['Table']['name1']),true); echo $xml->elem('content', array('namespace'=>'media')); it will output as <media:content url="http://...."/> thanx, /Aman On Mar 14, 11:40 pm, aman batra <batra_aman2...@yahoo.com> wrote: > ut i need to make videositemaps and the format is different as of the > link sent by you. and thexmlis of the format i sent you.. > i am unable to generate the type of > <media:content url="----" type= "---"> > and so on... > like.. > > <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss" > xmlns:dcterms="http://purl.org/dc/terms/" > xmlns:gm="http://www.google.com/schemas/gm/1.1"> > <channel> > <item> > <pubDate>2005-06-18</pubDate> > <media:content url="http://www.google.com/samples/ > localandmaps.mpeg" type="video/mpeg"> > <media:title>Google Local and Google Maps</media:title> > <media:description>How to use Google Local and Google Maps to > find local information.</media:description> > <media:player url="http://www.google.com/playerLaunch? > id=localAndMaps" /> > <media:thumbnail url="http://www.google.com/images/ > localAndMaps.jpg"/> > <media:credit role="productioncompany">Google.com</ > media:credit> > <media:credit role="producer">Joe Smith</media:credit> > <media:category>Ads & Promotional</media:category> > <media:category>News</media:category> > </item> > </media:content> > </channel> > </rss> > > Can u help me out of this.. > > the link sent by you is exactly my sitemap.. > > On Mar 14, 5:56 pm, Smelly Eddie <ollit...@gmail.com> wrote: > > > aman: > > > How about generating dynamic sitemaps with > > CakePHPhttp://edwardawebb.com/programming/php-programming/cakephp/generating... > > > everything from getting the detailas to publishing asxml(in google > > sitemap format) > > > good luck > > > On Mar 13, 3:49 am, aman batra <batra_aman2...@yahoo.com> wrote: > > > > hello, i want to make the video sitemaps and according to google te > > >xmlshould be like > > > <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss" > > > xmlns:dcterms="http://purl.org/dc/terms/" > > > xmlns:gm="http://www.google.com/schemas/gm/1.1"> > > > <channel> > > > <item> > > > <pubDate>2005-06-18</pubDate> > > > <media:content url="http://www.google.com/samples/ > > > localandmaps.mpeg" type="video/mpeg"> > > > > <media:title>Google Local and Google Maps</media:title> > > > <media:description>How to use Google Local and Google Maps to > > > find local information.</media:description> > > > <media:player url="http://www.google.com/playerLaunch? > > > id=localAndMaps" /> > > > <media:thumbnail url="http://www.google.com/images/ > > > localAndMaps.jpg"/> > > > <media:credit role="productioncompany">Google.com</ > > > media:credit> > > > <media:credit role="producer">Joe Smith</media:credit> > > > > <media:category>Ads & Promotional</media:category> > > > <media:category>News</media:category> > > > </item> > > > </media:content> > > > </channel> > > > </rss> > > > > how should i useXmlhelper in my controller to make the namespace > > > like above and get my sitemap working like that. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---