Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: XML error help?

  1. #1
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts

    XML error help?

    Can someone tell me what this error means and a guess on what would need to be fixed? I get it when trying to upload to my website.

    Code:
    XML Parsing Error: not well-formed
    Location: https://istop2shop.com/index.php?page=editprofile&do=edit&id=2
    Line Number 1, Column 6:video/avi0<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    -----^

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    someone would if u post the relevant portion of the xml
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • #3
    New Coder
    Join Date
    Aug 2008
    Location
    Yorkshire, England
    Posts
    19
    Thanks
    0
    Thanked 1 Time in 1 Post
    The relevant part has been posted

    The problem is obvious - the content is html,

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    If you want to output xml then you can't output html

    Choose one or the other.

    an 'equivilent' xml dtd would be

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    It looks like the server is sending a content-type of text/xml and then serving an html page (as it looks like you've copied and pasted from a browser - and the browser thought it was supposed to be processing xml, but got html instead)

    If you view the page source you'll see what's going on; it may even be as simple as an error message, but formatted as html
    Last edited by Northie; 08-19-2008 at 01:48 PM.

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Northie View Post
    The relevant part has been posted

    The problem is obvious - the content is html,

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    If you want to output xml then you can't output html

    Choose one or the other.

    an 'equivilent' xml dtd would be

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    It looks like the server is sending a content-type of text/xml and then serving an html page (as it looks like you've copied and pasted from a browser - and the browser thought it was supposed to be processing xml, but got html instead)

    If you view the page source you'll see what's going on; it may even be as simple as an error message, but formatted as html
    - xhtml is xml so you can output both
    - the 'dtd' you talk about is xml prolog
    - the problem is inserting a page with doctype and all stuff in another page
    - this thread is pretty old and I guess the problem is already solved

    regards

  • #5
    New Coder
    Join Date
    Aug 2008
    Location
    Yorkshire, England
    Posts
    19
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by oesxyl View Post
    - xhtml is xml so you can output both
    - the 'dtd' you talk about is xml prolog
    - this thread is pretty old and I guess the problem is already solved
    as plain text, xhtml is formatted following xml principles.

    However, a browser that gets a content type of xml and then content that doesn't have the xml prologue is going to throw an error

    the thread is only a week old
    Last edited by Northie; 08-19-2008 at 07:28 PM. Reason: typos


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •