Comments (9)
Thanks for providing the error. However I'll need more info to figure out what's happening. Can you post the url to your sitemap and/or its full xml code.
from sitemapfriend.
This was highlighted to me by Google Webmaster tools as well.
After attempting to validate it, using this tool ( http://www.validome.org/xml/validate/ ), it seems that the default sitemap_xml_outer.chunk.tpl is producing invalid XML.
This is because sitemapFriend is starting the xml document with a break. This is invalid.
I've removed this manually, but it's still not invalid XML due to:
Can not find declaration of element 'urlset'.
Error Position:
xmlns:dc="http://purl.org/dc/elements/1.1/">
I have no idea about this one! If it helps, my problematic sitemap is here: http://tedxsheffield.com/sitemap.xml
from sitemapfriend.
@iparr, I as said before, kindly post the url to the sitemap or its full code. I can't investigate the issue without it.
from sitemapfriend.
@yogoo , the sitemap is message posted previously: http://tedxsheffield.com/sitemap.xml The call is exactly the same as @ArtImpulsion s and is using all the default tpls, etc. Can I help you with any further details?
from sitemapfriend.
Whoops, missed the url... Thanks for re-posting it.
Here's what I found so far:
- the tool you use marks the example sitemap provided by Google as invalid. However both Google example and sitemapFriend's sitemaps validate under W3C's validator.
- there's no new line character at the beginning of the output. The one you see is most likely added when copying the content of the page. See the page source or the response from the server.
- can you post the exact error returned by Google Webmaster tools?
@ArtImpulsion : you're right, the xml output is not configurable.
from sitemapfriend.
Hi,
on my side google webmaster tools refused to validate the xml sitemap generated due to the presence of the dublin core stuff.
I managed to change direclty in the core directory (core / components / sitemapfriend / elements / chunks / sitemap_xml_item.chunk.tpl & sitemap_xml_outer.chunk.tpl) the xml templates (ooooh ! bad boy) and remove DC references from there, and it validates fine.
Next release could have the xml templates as parameters to avoid any troubles.
Thanks anyway....
from sitemapfriend.
there's no new line character at the beginning of the output. The one you see is most likely added when copying the content of the page. See the page source or the response from the server.
Yup. doh.
can you post the exact error returned by Google Webmaster tools?
Under 'Error details' in 'Sitemaps':
Invalid XML tag - This tag was not recognized. Please fix it and resubmit.
Sorry, not very good details but that's the best I can do. Thank you for editing the default tpl.
from sitemapfriend.
@iparr: v1.0.2 should fix your issue.
from sitemapfriend.
Merci Jérome.
from sitemapfriend.
Related Issues (10)
- titleField vs fieldTitle HOT 4
- Property for exclusion of resources class modWebLink HOT 1
- Sitemap empty HOT 3
- Two sitemapFriend call on the same page doesn't work HOT 6
- Unable to install sitemapfriend HOT 2
- Displays only top level documents, unless specified in includeResources HOT 4
- li style HOT 1
- Exclude error pages in contexts HOT 1
- onlyTemplates does not work for children HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sitemapfriend.