1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Parse error: parse error, unexpected T_STRING in /home/ergo/public_html/sitemap_gen.p

Discussion in 'Google Sitemaps' started by gayc, Apr 17, 2006.

  1. #1
    http://www.ergoswim.co.uk/sitemap_gen.py

    Parse error: parse error, unexpected T_STRING in /home/ergo/public_html/sitemap_gen.py on line 121

    I can't seem to get past this when I've trying to generate my first sitemap.
    SEMrush
    I'm not very technically minded.

    Can anyone help point me in the right direction please?

    I don;t know xml so that doesn't help.

    Does anyone have a very simple config file they could post?

    Thanks, Gay
     
    gayc, Apr 17, 2006 IP
    SEMrush
  2. pwaring

    pwaring Well-Known Member

    Messages:
    846
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    135
    #2
    What is the code on lines 120, 121 and 122 of sitemap_gen.py? It's a bit hard to help when we can only see the error message and not the code.
     
    pwaring, Apr 17, 2006 IP
  3. gayc

    gayc Active Member

    Messages:
    533
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #3
    # XML formats
    SITEINDEX_HEADER = \
    '<?xml version="1.0" encoding="UTF-8"?>\n' \ line 121
    '<sitemapindex\n' \
    ' xmlns="http://www.google.com/schemas/sitemap/0.84"\n' \
    ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n' \
    ' xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84\n' \
    ' http://www.google.com/schemas/sitemap/0.84/' \
    'siteindex.xsd">\n'
    SITEINDEX_FOOTER = '</sitemapindex>\n'
    SITEINDEX_ENTRY = \
     
    gayc, Apr 17, 2006 IP