...

View Full Version : XML error help?



masterofollies
08-11-2008, 02:15 PM
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.


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">
-----^

shyam
08-11-2008, 04:13 PM
someone would if u post the relevant portion of the xml

Northie
08-19-2008, 01:44 PM
The relevant part has been posted

The problem is obvious - the content is html,


<!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


<?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

oesxyl
08-19-2008, 02:19 PM
The relevant part has been posted

The problem is obvious - the content is html,


<!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


<?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

Northie
08-19-2008, 07:28 PM
- 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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum