Welcome to WebmasterWorld Guest from 107.22.7.35

Forum Moderators: bill & werty

Message Too Old, No Replies

XML Parsing Error

     
1:24 am on Jul 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How do I get rid of this 'XML Parsing Error'? This code causes it.

<whatever:category>URL</whatever:category>
<whatever2:categoryname>Category Name</whatever2:categoryname>

An online feed validator says.....

>>line 16, column 0: XML parsing error: <unknown>:16:0: unbound prefix

and the browser says....

XML Parsing Error: not well-formed
Location: URL
Line Number 19, Column 93:

2:15 am on Jul 16, 2005 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Are "whatever" and "whatever2" defined namespaces? If not, that may well be your problem - the colon in XML is only used to denote the namespace of the element (unbound prefix - ie. the prefix "whatever" is not bound to a defined namespace).
3:09 am on Jul 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



:::Are "whatever" and "whatever2" defined namespaces?

Nope. Is there a list of defined namespaces some where?

4:58 am on Jul 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I got it fixed. Had to add some \'s and change

<whatever:category>
and
<whatever2:category>

to

<title>
and
<link>

 

Featured Threads

Hot Threads This Week

Hot Threads This Month