Comprehensive Guide to Creating Sitemap for Articles
In this article, how to create a sitemap for articles using XML and news tags is explained

Introduction
In today's digital world, proper and up-to-date display of website articles in search results is of particular importance. One of the effective tools for this purpose is Sitemap for Articles. This sitemap uses XML format and special tags like <news:news> to help search engines receive accurate information about articles, including publication date, article title and publication language. ✔️
XML Sitemap Code Sample for Articles
The code below is an example of a sitemap for articles that uses news tags:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
<url>
<loc>https://moresa-web.ir/blog/tafavot-jsx-v-tsx</loc>
<news:news>
<news:publication>
<news:name>Mohammadreza Sardashti</news:name>
<news:language>fa</news:language>
</news:publication>
<news:publication_date>2025-03-16T00:00:00Z</news:publication_date>
<news:title>What is the difference between JSX and TSX in React?</news:title>
</news:news>
</url>
<url>
<loc>https://moresa-web.ir/blog/hoosh-masnooi-dar-web-enqelab</loc>
<news:news>
<news:publication>
<news:name>Mohammadreza Sardashti</news:name>
<news:language>fa</news:language>
</news:publication>
<news:publication_date>2025-03-25T00:00:00Z</news:publication_date>
<news:title>Artificial Intelligence on the Web</news:title>
</news:news>
</url>
<url>
<loc>https://moresa-web.ir/blog/chatbot-ai-implementation</loc>
<news:news>
<news:publication>
<news:name>Mohammadreza Sardashti</news:name>
<news:language>fa</news:language>
</news:publication>
<news:publication_date>2025-03-26T00:00:00Z</news:publication_date>
<news:title>Comprehensive Guide to Implementing Smart Chatbot with Artificial Intelligence (For Developers and Webmasters)</news:title>
</news:news>
</url>
<url>
<loc>https://moresa-web.ir/blog/behinesazi-tosiye-gar-mohtava</loc>
<news:news>
<news:publication>
<news:name>Mohammadreza Sardashti</news:name>
<news:language>fa</news:language>
</news:publication>
<news:publication_date>2025-03-27T00:00:00Z</news:publication_date>
<news:title>Content Recommender Optimization | SEO, Content Marketing and Artificial Intelligence</news:title>
</news:news>
</url>
<url>
<loc>https://moresa-web.ir/blog/seo-optimization-tips</loc>
<news:news>
<news:publication>
<news:name>Mohammadreza Sardashti</news:name>
<news:language>fa</news:language>
</news:publication>
<news:publication_date>2025-03-28T00:00:00Z</news:publication_date>
<news:title>SEO Optimization | New Techniques for Increasing Google Ranking</news:title>
</news:news>
</url>
<url>
<loc>https://moresa-web.ir/blog/ai-in-web-development-and-seo-1404</loc>
<news:news>
<news:publication>
<news:name>Mohammadreza Sardashti</news:name>
<news:language>fa</news:language>
</news:publication>
<news:publication_date>2025-03-30T15:37:29Z</news:publication_date>
<news:title>Comprehensive Guide to Using Artificial Intelligence in Programming and Website Design: 1404 Trend for High SEO</news:title>
</news:news>
</url>
</urlset>
Code Sample Description
In this code sample:
- <loc>: URL of the article page.
- <news:publication>: Information about the article publisher including publisher name (Mohammadreza Sardashti) and publication language (fa).
- <news:publication_date>: Article publication date and time in standard ISO format.
- <news:title>: Article title.
Using this structure ensures that search engines have accurate and complete information about each article, which helps improve SEO and content indexing. ✔️
Conclusion
Creating an accurate and comprehensive sitemap for articles is a requirement for optimal website management. By using XML format and special tags like news:news, it can be ensured that all important article information is transmitted to search engines and displayed correctly in search results. This will greatly help improve indexing, increase traffic and enhance site ranking. ✔️
An idea for your next project?
Let’s talk about it ↗

