컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
사이트맵 확장 프로그램 통합 방법
사이트맵 확장 프로그램은 사이트에서 사용 중인 다양한 종류의 콘텐츠와 메타데이터를 Google에 알리는 데 매우 유용합니다. 페이지의 콘텐츠는 이미지와 동영상이 삽입된 뉴스 기사를 게시하는 것과 같이 여러 종류의 확장 프로그램에 해당할 때가 많습니다. 또한 페이지를 현지화할 수도 있습니다. 즉, 현지화된 페이지에 hreflang
주석을 추가할 수 있습니다.
네임스페이스
사이트맵에서 사용하려는 각 사이트맵 확장 프로그램에 확장 프로그램에서 지원하는 태그를 선언하는 각 네임스페이스를 지정해야 합니다. urlset
태그의 xmlns
속성을 사용하면 됩니다. Google에서 지원하는 사이트맵 확장 프로그램의 네임스페이스는 다음과 같습니다.
여러 네임스페이스 선언
여러 네임스페이스를 선언하려면 각 확장 프로그램 문서에 설명된 대로 해당 네임스페이스 참조를 사이트맵에 추가합니다. 다음은 뉴스, 동영상, xhtml(hreflang
용) 확장 프로그램을 사이트맵에 추가하는 방법을 보여 주는 예입니다.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<!-- rest of the sitemap -->
사이트맵 확장 프로그램 통합
네임스페이스를 선언한 후 사용하려는 각 사이트맵 확장 프로그램 문서의 구현 세부정보를 따릅니다.
확장 프로그램을 통합하려면 사용 중인 사이트맵 확장 프로그램의 태그를 각 사이트맵 확장 프로그램 문서에 설명된 대로 적절한 <url>
태그에 차례로 추가합니다.
예를 들어 뉴스, 동영상, xhtml(hreflang
) 확장 프로그램을 사이트맵에 추가하려면 다음 단계를 따르세요.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://www.example.com/english/page.html</loc>
<!-- Starting with the news extension tags -->
<news:news>
<news:publication>
<news:name>The Example Times</news:name>
<news:language>en</news:language>
</news:publication>
<news:publication_date>2008-12-23</news:publication_date>
<news:title>Companies A, B in Merger Talks</news:title>
</news:news>
<!-- Next we add video extension tags -->
<video:video>
<video:thumbnail_loc>https://www.example.com/thumbs/123.jpg</video:thumbnail_loc>
<video:title>Lizzi is painting the wall</video:title>
<video:description>
Gary is watching the paint dry on the wall Lizzi painted.
</video:description>
<video:player_loc>
https://player.example.com/video/987654321
</video:player_loc>
</video:video>
<!-- And finally the xhtml tags for hreflang -->
<xhtml:link
rel="alternate"
hreflang="de"
href="https://www.example.de/deutsch/page.html"/>
<xhtml:link
rel="alternate"
hreflang="de-ch"
href="https://www.example.de/schweiz-deutsch/page.html"/>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://www.example.com/english/page.html"/>
</url>
<!-- Add more <url> tags -->
사이트맵에서 확장 프로그램 순서는 <loc>
태그 다음과는 관련이 없습니다. 일반 사이트맵 권장사항, 특히 파일 크기 한도에 유의하세요. 사이트맵 확장 프로그램을 통합하면 사이트맵의 파일 크기가 크게 늘어납니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-04(UTC)
[null,null,["최종 업데이트: 2025-08-04(UTC)"],[[["\u003cp\u003eSitemap extensions inform Google about diverse content types and metadata on your site, such as images, videos, news, and localized versions.\u003c/p\u003e\n"],["\u003cp\u003eTo use sitemap extensions, declare their respective namespaces within the \u003ccode\u003eurlset\u003c/code\u003e tag of your sitemap file.\u003c/p\u003e\n"],["\u003cp\u003eCombine extensions by adding tags from different extensions within the \u003ccode\u003e<url>\u003c/code\u003e tag, following each extension's documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe order of extension tags within the \u003ccode\u003e<url>\u003c/code\u003e tag (after the \u003ccode\u003e<loc>\u003c/code\u003e tag) does not matter.\u003c/p\u003e\n"],["\u003cp\u003eBe mindful of sitemap file size limits, as combining extensions can significantly increase file size.\u003c/p\u003e\n"]]],["Sitemap extensions allow specifying content types and metadata. To combine extensions, declare each extension's namespace using the `xmlns` attribute within the `\u003curlset\u003e` tag, referencing the correct URLs for image, news, video, or `xhtml` (for `hreflang`). After declaring namespaces, insert the tags from each desired extension, following the specifications in the respective documentation, within the `\u003curl\u003e` tag. Extensions can be added in any order after the `\u003cloc\u003e` tag, and combining extensions will increase the overall sitemap file size.\n"],null,["# How to Combine Sitemap Extensions | Google Search Central\n\nHow to combine sitemap extensions\n=================================\n\n\nSitemap extensions are a great way to tell Google about the different kinds of content and\ntheir metadata that you're using on your site. Often the content on your pages may fit into\nmultiple kinds of extensions; for example, you might be publishing news articles that embed\nimages and videos. Additionally, your pages may be localized as well, which might mean that\nyou could add `hreflang` annotations for your localized pages.\n\nNamespaces\n----------\n\n\nFor each sitemap extension that you want to use in a sitemap you need to specify the\nrespective namespace that declares the tags the extension supports. This is done with the\n`xmlns` attribute of the `urlset` tag. The namespaces for the sitemap\nextensions Google supports are:\n\n| Extension tags and their namespace definitions ||\n|---------------------------|------------------------------------------------------------------------------------------------------|\n| `image:` | [`http://www.google.com/schemas/sitemap-image/1.1`](http://www.google.com/schemas/sitemap-image/1.1) |\n| `news:` | [`http://www.google.com/schemas/sitemap-news/0.9`](http://www.google.com/schemas/sitemap-news/0.9) |\n| `video:` | [`http://www.google.com/schemas/sitemap-video/1.1`](http://www.google.com/schemas/sitemap-video/1.1) |\n| `xhtml:` (for `hreflang`) | [`http://www.w3.org/1999/xhtml`](http://www.w3.org/1999/xhtml) |\n\n### Declaring multiple namespaces\n\n\nTo declare multiple namespaces, add the respective namespace references to your sitemap as\ndescribed in the documentation of the respective extensions. Here's an example that shows how\nto add the news, video, and xhtml (for `hreflang`) extensions to a sitemap: \n\n```text\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003curlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\n xmlns:news=\"http://www.google.com/schemas/sitemap-news/0.9\"\n xmlns:video=\"http://www.google.com/schemas/sitemap-video/1.1\"\n xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\u003e\n \u003curl\u003e\n\u003c!-- rest of the sitemap --\u003e\n```\n\nCombining sitemap extensions\n----------------------------\n\n\nOnce you declared the namespaces, follow the implementation details from the respective sitemap\nextension documentation you're going to use.\n\n- [Image sitemap](/search/docs/crawling-indexing/sitemaps/image-sitemaps)\n- [News sitemap](/search/docs/crawling-indexing/sitemaps/news-sitemap)\n- [Video sitemap](/search/docs/crawling-indexing/sitemaps/video-sitemaps)\n- [`hreflang`](/search/docs/specialty/international/localized-versions#sitemap)\n\n\nTo combine extensions, add the tags from whatever sitemap extensions you're using, one after the\nother, to the appropriate `\u003curl\u003e` tag, as described in each sitemap extension's\ndocumentation.\n\n\nFor example, to add news, video, and xhtml (`hreflang`) extensions to a sitemap: \n\n```scdoc\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003curlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\n xmlns:news=\"http://www.google.com/schemas/sitemap-news/0.9\"\n xmlns:video=\"http://www.google.com/schemas/sitemap-video/1.1\"\n xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\u003e\n \u003curl\u003e\n \u003cloc\u003ehttps://www.example.com/english/page.html\u003c/loc\u003e\n \u003c!-- Starting with the news extension tags --\u003e\n \u003cnews:news\u003e\n \u003cnews:publication\u003e\n \u003cnews:name\u003eThe Example Times\u003c/news:name\u003e\n \u003cnews:language\u003een\u003c/news:language\u003e\n \u003c/news:publication\u003e\n \u003cnews:publication_date\u003e2008-12-23\u003c/news:publication_date\u003e\n \u003cnews:title\u003eCompanies A, B in Merger Talks\u003c/news:title\u003e\n \u003c/news:news\u003e\n \u003c!-- Next we add video extension tags --\u003e\n \u003cvideo:video\u003e\n \u003cvideo:thumbnail_loc\u003ehttps://www.example.com/thumbs/123.jpg\u003c/video:thumbnail_loc\u003e\n \u003cvideo:title\u003eLizzi is painting the wall\u003c/video:title\u003e\n \u003cvideo:description\u003e\n Gary is watching the paint dry on the wall Lizzi painted.\n \u003c/video:description\u003e\n \u003cvideo:player_loc\u003e\n https://player.example.com/video/987654321\n \u003c/video:player_loc\u003e\n \u003c/video:video\u003e\n \u003c!-- And finally the xhtml tags for hreflang --\u003e\n \u003cxhtml:link\n rel=\"alternate\"\n hreflang=\"de\"\n href=\"https://www.example.de/deutsch/page.html\"/\u003e\n \u003cxhtml:link\n rel=\"alternate\"\n hreflang=\"de-ch\"\n href=\"https://www.example.de/schweiz-deutsch/page.html\"/\u003e\n \u003cxhtml:link\n rel=\"alternate\"\n hreflang=\"en\"\n href=\"https://www.example.com/english/page.html\"/\u003e\n \u003c/url\u003e\n\u003c!-- Add more \u003curl\u003e tags --\u003e\n```\n\n\nThe order of the extension in the sitemap is irrelevant after the `\u003cloc\u003e`\ntag. Keep in mind the\n[general sitemap best practices](/search/docs/crawling-indexing/sitemaps/build-sitemap#general-guidelines),\nespecially the file size limits. Combining sitemap extensions increases the file size of your\nsitemap significantly."]]