B
B
bozuriciyu2019-09-14 02:31:03
XML
bozuriciyu, 2019-09-14 02:31:03

CDATA in sitemap ok?

I'm doing a sitemap generation, and the package generates some fields in this form.
<image:title><![CDATA[WOOOOOOOW]]>
I can't find how to turn it off, but can I just leave it? I looked at 20 sites, but I haven’t seen anyone like this. And this package generates like this. How will the crawler react to this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konst57, 2019-09-19
@Konst57

There is no such field in the sitemap.xml documentation. Most likely the robot will notice an error when scanning. Try to check the sitemap validator, and also read the article how to make an xml sitemap

S
Sergey Arsentiev, 2021-07-17
@moytop

As far as I understand, CDATA allows you to avoid errors when parsing XML if there are any "left" characters like & in the string. Therefore, if you shield the URL or some other fields in cdata that may contain abracadabra, then this should be a plus for the sitemap, not a minus.
I use it myself without CDATA - all the rules.
But I just fed the sitemap with CDATA to google - everything is ok, 2899 url was added, as it should be.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question