+ Reply to Thread
Results 1 to 4 of 4

Thread: Cannot get rid of this XML error

  1. #1
    shys_aelaes26 is offline x10Hosting Member shys_aelaes26 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    32

    Cannot get rid of this XML error

    ( this is no advertisement, but example )

    If you go over to http://ansem.x10.mx/ youll see I have a weird xml error.

    XML-verwerking mislukt

    XML-verwerking mislukt: syntaxfout (Regel: 1, Karakter: 0)

    Document als HTML verwerken
    Fout:
    missing root element

    Specificatie
    http://www.w3.org/TR/REC-xml/

    In firefox the error is this:
    XML-parsefout: geen element gevonden
    Locatie: http://ansem.x10.mx/
    Regelnummer 1, kolom 1:
    ^

    Which says there is no element found.
    I have validated all my xml pages and have added a # in front of several xml related lines in the php to disable it, yet I keep getting this error, not even a failed web page.
    I dont understand the error at all.

    Can anyone help me with this ( perhaps even with ftp / vnc )

    Thanks in advance.

  2. #2
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: Cannot get rid of this XML error

    Could please post your source file ?

    Check your source file for unclosed tags.

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Cannot get rid of this XML error

    Your front page is
    1) sending a 500 Internal Server Error header
    2) setting the content-type to application/xhtml-xml
    3) apparently sending no body.

    So the browser is expecting an xml file but it is getting 0 bytes which causes the parsing error.
    Nothing is always absolutely so.

  4. #4
    shys_aelaes26 is offline x10Hosting Member shys_aelaes26 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    32

    Re: Cannot get rid of this XML error

    Thanks for point 2 about it being set to xhtml/xml application.
    I quoted the lines in index.php with #

    The lines were:
    PHP Code:
    // enable xhtml+xml mode if the client supports it
        #if ( stristr(@$_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") )
            #header("Content-type: application/xhtml+xml");
        #else
            
    header("Content-type: text/html"); 
    Thank you very much.
    So far it seems to work, there isnt a chance this will cause trouble later on ? just curious about it.

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 02-16-2011, 09:42 AM
  2. Replies: 1
    Last Post: 08-20-2010, 03:26 AM
  3. Replies: 4
    Last Post: 12-22-2009, 04:39 PM
  4. Replies: 1
    Last Post: 03-03-2008, 10:58 AM
  5. Replies: 1
    Last Post: 09-01-2007, 02:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers