doc->appendChild( $this->doc->createComment( "generator='jetpack-" . JETPACK__VERSION . "'" ) ); $this->doc->appendChild( $this->doc->createProcessingInstruction( 'xml-stylesheet', 'type="text/xsl" href="' . $this->finder->construct_sitemap_url( 'sitemap-index.xsl' ) . '"' ) ); } protected function get_root_element() { if ( ! isset( $this->root ) ) { $this->root = $this->doc->createElement( 'sitemapindex' ); $this->root->setAttribute( 'xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9' ); $this->doc->appendChild( $this->root ); $this->byte_capacity -= strlen( $this->doc->saveXML( $this->root ) ); } return $this->root; } }