Problem in xml code

Discussion in 'XML & RSS' started by dairyman, Aug 26, 2007.

  1. #1
    Hai friends:)

    I have a problem with the xml code. I use sitemap.xml for my site. But when the url was opened in the browser, it says

    XML Parsing Error: xml declaration not at start of external entity
    Line Number 2, Column 1:
    <?xml version="1.0" encoding="UTF-8"?>
    ^

    What shall I do to rectify the defect? Please advice me:confused:
     
    dairyman, Aug 26, 2007 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Your error is on Line Number 2, Column 1:
    So, probably is because you have an initial blank line. Remove it and try again.
     
    ajsa52, Aug 27, 2007 IP