Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><em>Precondition</em>:<br> DomDocument::schemaValidate($path) won't work until <a href="http://php.net/manual/de/filesystem.configuration.php" rel="nofollow noreferrer">allow_url_fopen</a> is enabled</p> <p><em>About Sitemaps</em>:<br> From <a href="http://www.sitemaps.org/protocol.php#validating" rel="nofollow noreferrer">http://www.sitemaps.org/protocol.php#validating</a></p> <blockquote> <p>In order to validate your Sitemap or Sitemap index file against a schema, the XML file will need additional headers as shown below.</p> </blockquote> <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt; &lt;urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt; &lt;url&gt; ... &lt;/url&gt; &lt;/urlset&gt; </code></pre> <p>to add those headers to your XML you first need to retrieve the DomDocument via <code>$domDoc = $this-&gt;sitemap()-&gt;getDomSitemap()</code> than add the additional headers and finally <code>echo $domDoc-&gt;saveXml()</code></p> <p>doesnt seem nice to me to do so much in your view, maybe an additional ViewHelper subclassing Zend_View_Helper_Navigation_Sitemap may be appropriate for you.</p> <p>Unfortunately I have never worked with DomDocument yet, so I can't help with setting the namespace attributes, maybe <a href="https://stackoverflow.com/questions/2236931/php-dom-xml-create-multiple-namespace-addtributes">this post</a> will help you for that.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload