다음 XML 스키마는 Sitemap 파일에 표시될 수 있는 요소와 속성을 정의한다. 다음 링크에서 스키마를 다운로드 하여 유효성을 체크 할수 있다.

Sitemap의 경우: http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd
Sitemap 색인 파일의 경우: http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd

이 스키마를 기준으로 Sitemap 구조의 유효성을 확인하는 데 도움이 되는 여러 가지 도구가 제공되며 각각의 위치에서 XML 관련 도구 목록을 찾을 수 있다.

http://www.w3.org/XML/Schema#Tools
http://www.xml.com/pub/a/2000/12/13/schematools.html

Sitemap이나 Sitemap 색인 파일을 스키마와 비교해 유효성을 확인하기 위해서는 아래 표시된 것처럼 XML 파일에 추가 헤더가 있어야 한다.

<Sitemap>

<?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>

<Sitemap 색인파일>

<?xml version='1.0' encoding='UTF-8'?>

<sitemapindex 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/siteindex.xsd"

         xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

   <sitemap>






  • No labels