Seite 1 von 1

Kleines Problem mit Google Sitemap - Danke!

Verfasst: 26.03.2006, 16:06
von Foickert
Hey Leute,

hab mich jetzt auch bei Google Sitemap "angemeldet" und hab die 2 notwendigen Dateien (sitemap.xml und sitemap_schema.xsd) erstellt, jedoch spricht Google beim Upload der sitemap.xml von einem "nicht unterstützen Dateiformat".

Beide Dateien sind direkt im Root-Verzeichnis meiner Domain und sehen wie folgt aus:

Code: Alles auswählen

 sitemap.xml Code:

<?xml version="1.0" encoding="UTF-8"?>
	<urlset xmlns="http&#58;//www.beispiel.de"
	xmlns&#58;xsi="http&#58;//www.w3.org/2001/XMLSchema-instance"
	xsi&#58;schemaLocation="http&#58;//www.beispiel.de
	http&#58;//www.beispiel.de/sitemap_schema.xsd">
	
	<url>
      <loc>http&#58;//www.beispiel.de/</loc>
      <changefreq>hourly</changefreq>
   </url>

        <url>
      <loc>http&#58;//www.beispiel.de/unterseite.html</loc>
      <changefreq>hourly</changefreq>
   </url>

   .....................

</urlset>

Code: Alles auswählen

 sitemap_schema.xsd Code&#58;

<xsd&#58;schema targetNamespace="http&#58;//www.beispiel.de">
-
	<xsd&#58;annotation>
-
	<xsd&#58;documentation>

    XML Schema for Sitemap files.
    Last Modifed 2005-05-24
  
</xsd&#58;documentation>
</xsd&#58;annotation>
-
	<xsd&#58;element name="urlset">
-
	<xsd&#58;annotation>
-
	<xsd&#58;documentation>

      Container for a set of up to 50,000 document elements.
      This is the root element of the XML file.
    
</xsd&#58;documentation>
</xsd&#58;annotation>
-
	<xsd&#58;complexType>
-
	<xsd&#58;sequence>
<xsd&#58;element ref="url" maxOccurs="unbounded"/>
</xsd&#58;sequence>
</xsd&#58;complexType>
</xsd&#58;element>
-
	<xsd&#58;element name="url">
-
	<xsd&#58;annotation>
-
	<xsd&#58;documentation>

      Container for the data needed to describe a document to crawl.
    
</xsd&#58;documentation>
</xsd&#58;annotation>
-
	<xsd&#58;complexType>
-
	<xsd&#58;all>
<xsd&#58;element ref="loc"/>
<xsd&#58;element ref="lastmod" minOccurs="0"/>
<xsd&#58;element ref="changefreq" minOccurs="0"/>
<xsd&#58;element ref="priority" minOccurs="0"/>
</xsd&#58;all>
</xsd&#58;complexType>
</xsd&#58;element>
-
	<xsd&#58;element name="loc">
-
	<xsd&#58;annotation>
-
	<xsd&#58;documentation>

      REQUIRED&#58; The location URI of a document.
      The URI must conform to RFC 2396 &#40;http&#58;//www.ietf.org/rfc/rfc2396.txt&#41;.
    
</xsd&#58;documentation>
</xsd&#58;annotation>
-
	<xsd&#58;simpleType>
-
	<xsd&#58;restriction base="xsd&#58;anyURI">
<xsd&#58;minLength value="12"/>
<xsd&#58;maxLength value="2048"/>
</xsd&#58;restriction>
</xsd&#58;simpleType>
</xsd&#58;element>
-
	<xsd&#58;element name="lastmod">
-
	<xsd&#58;annotation>
-
	<xsd&#58;documentation>

      OPTIONAL&#58; The date the document was last modified. The date must conform
      to ISO 8601 &#40;http&#58;//www.w3.org/TR/NOTE-datetime&#41;. Example&#58; 2005-05-10
      Lastmod may also contain a timestamp. Example&#58; 2005-05-10T17&#58;33&#58;30+08&#58;00
    
</xsd&#58;documentation>
</xsd&#58;annotation>
-
	<xsd&#58;simpleType>
-
	<xsd&#58;restriction base="xsd&#58;string">
<xsd&#58;minLength value="10"/>
<xsd&#58;maxLength value="25"/>
</xsd&#58;restriction>
</xsd&#58;simpleType>
</xsd&#58;element>
-
	<xsd&#58;element name="changefreq">
-
	<xsd&#58;annotation>
-
	<xsd&#58;documentation>

      OPTIONAL&#58; Indicates how frequently the content at a particular URL is
      likely to change. The value "always" should be used to describe
      documents that change each time they are accessed. The value "never"
      should be used to describe archived URLs. Please note that web
      crawlers may not necessarily crawl pages marked "always" more often.
      Consider this element as a friendly suggestion and not a command.
    
</xsd&#58;documentation>
</xsd&#58;annotation>
-
	<xsd&#58;simpleType>
-
	<xsd&#58;restriction base="xsd&#58;string">
<xsd&#58;enumeration value="always"/>
<xsd&#58;enumeration value="hourly"/>
<xsd&#58;enumeration value="daily"/>
<xsd&#58;enumeration value="weekly"/>
<xsd&#58;enumeration value="monthly"/>
<xsd&#58;enumeration value="yearly"/>
<xsd&#58;enumeration value="never"/>
</xsd&#58;restriction>
</xsd&#58;simpleType>
</xsd&#58;element>
-
	<xsd&#58;element name="priority">
-
	<xsd&#58;annotation>
-
	<xsd&#58;documentation>

      OPTIONAL&#58; The priority of a particular URL relative to other pages
      on the same site. The value for this element is a number between
      0.0 and 1.0 where 0.0 identifies the lowest priority page&#40;s&#41;.
      The default priority of a page is 0.5. Priority is used to select
      between pages on your site. Setting a priority of 1.0 for all URLs
      will not help you, as the relative priority of pages on your site
      is what will be considered.
    
</xsd&#58;documentation>
</xsd&#58;annotation>
-
	<xsd&#58;simpleType>
-
	<xsd&#58;restriction base="xsd&#58;decimal">
<xsd&#58;minInclusive value="0.0"/>
<xsd&#58;maxInclusive value="1.0"/>
</xsd&#58;restriction>
</xsd&#58;simpleType>
</xsd&#58;element>
</xsd&#58;schema>
Ich glaube, dass das Problem jeweils nur in der gegenseitigen "Verlinkung" der beiden Dateien zu finden ist, also in den Code-Zeilen wo die URL meiner Seite vorkommt.

Ich habe leider absolut keine Erfahrung mit XML.. wahrscheinlich hab ich einen absoluten Anfänger-Fehler reingehauen ;)

Eine Sitemap-Indexdatei nutze ich nicht.

Vielen, vielen Dank für eure Hilfe!

Verfasst:
von

Verfasst: 26.03.2006, 16:15
von Fox Mulder
Warum hälst Du Dich nicht einfach an das von Google vorgegeben Format?

https://www.google.com/webmasters/sitem ... pXMLFormat

und hab die 2 notwendigen Dateien (sitemap.xml und sitemap_schema.xsd)
Es ist nur eine sitemap.xml nötig.

Gruss

Kleines Problem mit Google Sitemap - Danke!

Verfasst: 26.03.2006, 16:19
von baynado
Probier es mal mit diesem Tool
Erstellt automatisch eine Google Sitemap

https://www.vigos.com/products/gsitemap/

Verfasst:
von
SEO Consulting bei ABAKUS Internet Marketing
Erfahrung seit 2002
  • persönliche Betreuung
  • individuelle Beratung
  • kompetente Umsetzung

Jetzt anfragen: 0511 / 300325-0.


Kleines Problem mit Google Sitemap - Danke!

Verfasst: 26.03.2006, 16:20
von Foickert
Daran hatte ich mich zuerst auch gehalten und es kam der selbe Fehler.

Die sitemap.xml sah dann so aus:

Code: Alles auswählen

 sitemap.xml Code&#58;

<?xml version="1.0" encoding="UTF-8"?>
   < urlset xmlns="http&#58;//www.beispiel.de">
   
   <url>
      <loc>http&#58;//www.beispiel.de/</loc>
      <changefreq>hourly</changefreq>
   </url>

        <url>
      <loc>http&#58;//www.beispiel.de/unterseite.html</loc>
      <changefreq>hourly</changefreq>
   </url>

   .....................

</urlset>
Den anderen Code hatte ich übrigens auch von der Google-Info-Seite.
Also selber hab ich mir das nicht einfallen lassen.. dafür reichen meine XML-Kenntnisse nicht aus ;)

Demnach müsste der Fehler jetzt doch in der sitemap_schema.xsd sein, oder?

Verfasst: 26.03.2006, 16:29
von Fox Mulder
Prüfe ob Deine XML Datei valide ist:
- Entferne alle Leerzeichen vor dem ersten Tag: <?xml version="1.0" encoding="UTF-8"?>
(Siehe: https://www.abakus-internet-marketing.d ... 25340.html)
- Speichere sie als irgendwas.xml auf dem Desktop ab.
- Öffne die Datei in einem Browserfenster des Internet Explorers.
Das geht am Besten, wenn Du die Datei in eine geöffnetes Fenster des IE ziehst.
- Öffnet die Datei vollständig und ohne Fehler?

Wenn ja dann neu hochladen und bei Google anmelden.

Gruss

Re: Kleines Problem mit Google Sitemap - Danke!

Verfasst: 26.03.2006, 16:37
von Fox Mulder
Foickert hat geschrieben:

Code: Alles auswählen

  < urlset xmlns="http&#58;//www.beispiel.de">
Das ist doch Kappes hier.
In der Vorlage von Google kann ich das nicht sehen:
< urlset xmlns="https://www.google.com/schemas/sitemap/0.84">

Gruss

Kleines Problem mit Google Sitemap - Danke!

Verfasst: 26.03.2006, 16:58
von Foickert
Achso, ich brauche nur die sitemap.xml!

Ich hatte mich nämlich immer schon gewundert, warum man selber eine Schema-Datei uploaden muss, wenn sie doch schon bei google ist.

Der Fehler in der .xml-Datei ist eben dieses Leerzeichen ganz am Anfang folgender Zeile:
< urlset xmlns="https://www.google.com/schemas/sitemap/0.84">

Somit hat Google einen Fehler in ihrer Dokumentation.. Na Na Na! ;)

Naja, jetzt sollte alles funzen.

Wenn ich die .xml-Datei aufrufe, dann kommt zumindest schonmal keine Fehlermeldung.

Jetzt noch die Prüfung der Sitemap von Google abwarten!

Danke für eure Hilfe!

Kleines Problem mit Google Sitemap - Danke!

Verfasst: 27.03.2006, 08:50
von Nullpointer
weshalb sollte google auch gegen ein fremdes schema validieren? machte das ganza ja irgendwie hinfällig.