src/Net/Site/MapBuilder.php
public static function build( $urls )
	{
		$set	= new XML_DOM_Node( "urlset" );
		$set->setAttribute( 'xmlns', "http://www.google.com/schemas/sitemap/0.84" );
		foreach( $urls as $url )
		{
			$node	= new XML_DOM_Node( "url" );
			$child	= new XML_DOM_Node( "loc", $url );
			$node->addChild( $child );
			$set->addChild( $node );
		}
		$xb	= new XML_DOM_Builder();
		return $xb->build( $set );
	}
public static function build( $urls )
	{
		$set	= new XML_DOM_Node( "urlset" );
		$set->setAttribute( 'xmlns', "http://www.google.com/schemas/sitemap/0.84" );
		foreach( $urls as $url )
		{
			$node	= new XML_DOM_Node( "url" );
			$child	= new XML_DOM_Node( "loc", $url );
			$node->addChild( $child );
			$set->addChild( $node );
		}
		$xb	= new XML_DOM_Builder();
		return $xb->build( $set );
	}
public static function build ( $ urls ) { $ set = new XML_DOM_Node ( "urlset" ) ; $ set -> setAttribute ( 'xmlns' , "http://www.google.com/schemas/sitemap/0.84" ) ; foreach ( $ urls as $ url ) { $ node = new XML_DOM_Node ( "url" ) ; $ child = new XML_DOM_Node ( "loc" , $ url ) ; $ node -> addChild ( $ child ) ; $ set -> addChild ( $ node ) ; } $ xb = new XML_DOM_Builder ( ) ; return $ xb -> build ( $ set ) ; }
Builds Sitemap XML for List of URLs.
@access		public
@static
@param		array		$urls			List of URLs
@return		string
Builds Sitemap XML for List of URLs .