Microsys
        

Google Code Sitemap using XML Sitemaps Generator

Create Google Code Sitemaps and XML Sitemaps

Google searches source code files on the internet. This functionality is called Google Code Search. If you are a webmaster that owns a website featuring source code files, you should create code sitemaps to help Google index your code. Code sitemaps look like normal XML sitemaps, but have some extra xml sitemap tags and requirements. If you do not know how to make normal XML sitemaps, check our xml sitemap generator tutorial.


Creating the Code Sitemap

Building code sitemaps for search engines such as Google is similar to the process for generating normal XML sitemaps

Note: Depending on the website and its usage of file extensions, it may not always be possible to generate code sitemaps.

When making code sitemaps, you have to ensure all relevant code file file extensions are included. You may also need to tighten which file name patterns are accepted as code files. Both can be done in sitemap generator output filters. The list of programming annd markup languages supported by Google Code Search and our code sitemap generator include: c++, c, c#, pascal, java, ruby, python, lisp, smalltalk, sml, eiffel, fortran, modula2, modula3, bat, applescript, lua, ada, awk, tcl, cobol, assembly, basic, sql, xml, xslt, xul, html, css, perl, php, asp, coldfusion, javascript, jsp and more as they are added.

To help configuration, A1 Sitemap Generator has a preset option that sets all options to work for most websites that host source code files.
google code sitemap options


After website crawl has finished, you can build the Google code sitemap by choosing the correct XML sitemap file kind to create:
create google code sitemap




Creating the Code Sitemap

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:c="http://www.google.com/codesearch/schemas/sitemap/1.0">
  <url>
    <loc>http://example.com/cppheader.hpp</loc>
    <c:codesearch>
      <c:filetype>c++</c:filetype>
    </c:codesearch>
  </url>
</urlset>

Webmaster and website software tools


Business and desktop software utilities

Website and webmaster guides


Search engine optimization help

 © Copyright 1997-2012 Microsys