Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3673916
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:47:30+00:00 2026-05-19T02:47:30+00:00

When outputting Zend Navigation using sitemap() view helper, I get the following error: Sitemap

  • 0

When outputting Zend Navigation using sitemap() view helper, I get the following error:

Sitemap is invalid according to XML Schema at "http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"

The validation is turned on:

$this->navigation()->setUseSchemaValidation(true)->setFormatOutput(true);
  • How to render valid xml sitemap using Zend Framework?

My sitemap looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>http://example.com/index/index/slug/news</loc>
  </url>
  <url>
    <loc>http://example.com/strona/test-page</loc>
  </url>
  <url>

    <loc>http://example.com/strona/test-submenu</loc>
  </url>
  <url>
    <loc>http://example.com/strona/subpage-submenu</loc>
  </url>
  <url>
    <loc>http://example.com/strona/test-submenu-1</loc>

  </url>
  <url>
    <loc>http://example.com/feed/list</loc>
  </url>
  <url>
    <loc>http://example.com/default/sitemap</loc>
  </url>
</urlset>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:47:31+00:00Added an answer on May 19, 2026 at 2:47 am

    Precondition:
    DomDocument::schemaValidate($path) won’t work until allow_url_fopen is enabled

    About Sitemaps:
    From http://www.sitemaps.org/protocol.php#validating

    In order to validate your Sitemap or
    Sitemap index file against a schema,
    the XML file will need additional
    headers as shown below.

    <?xml version='1.0' encoding='UTF-8'?>
    <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">
       <url>
          ...
       </url>
    </urlset>
    

    to add those headers to your XML you first need to retrieve the DomDocument via $domDoc = $this->sitemap()->getDomSitemap()
    than add the additional headers and finally echo $domDoc->saveXml()

    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.

    Unfortunately I have never worked with DomDocument yet, so I can’t help with setting the namespace attributes, maybe this post will help you for that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am outputting RTF from a word processor component. This is working well, but
I have a repeater control outputting some HTML. I want a table which outputs
I am trying to find the best practice for generating and outputting html which
I have a small program to order and sort email messages, outputting to a
Is there a way to create an html link using h:outputLink, other JSF tag
for answer a xmlhttprequest in .ashx file with xml that created with XmlTextWriter class
I'm trying to create an XML file with a corresponding XSLT stylesheet. Everything sort
say I have the following function: function checkPanes() { activePane = ''; var panels
What would the cleanest way to the following pseudocode be? class Player id name
I currently have the following: class Question < ActiveRecord::Base belongs_to :product belongs_to :user belongs_to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.