예제 #1
0
 /**
  * Default rendering of a node.
  *
  * This renders a URL into a XML sitemap node.
  * <code>
  * <url>
  *   <loc>http://www.example.com/</loc>
  *   <changefreq>monthly</changefreq>
  *   <priority>0.8</priority>
  * </url>
  * </code>
  *
  * @param T_CompositeLeaf $node  node to visit
  */
 function renderDefault(T_CompositeLeaf $node)
 {
     $url = $this->addChild('url');
     $loc = $node->getUrl($this->url_filter);
     $url->addChild('loc', $loc);
     $freq = $node->getChangeFreq();
     if (!is_null($freq)) {
         $url->addChild('changefreq', $freq);
     }
     $url->addChild('priority', $node->getPriority());
 }