Welcome to WebmasterWorld Guest from 107.20.59.213

Forum Moderators: httpwebwitch

Message Too Old, No Replies

element error

     

jackvull

4:00 pm on Jan 27, 2007 (gmt 0)

10+ Year Member



Is this some schema problem?
I don't have an XSD file and am just creating this XML file directly from PHP.

The begionning of the XML file is:
<?xml version='1.0'?><channel><title>blah blah

...

The error I get with a validator is:
1Column:33
Error:Can not find declaration of element 'channel'.

Any ideas?

choster

8:35 pm on Jan 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you testing for well-formedness (document is marked up with correct XML syntax) or validity (i.e. the document conforms to a schema)? If the latter you need a DOCTYPE or schema declaration. Without more information about what you're trying to accomplish, however, it's hard to diagnose the problem.

jackvull

8:44 pm on Jan 29, 2007 (gmt 0)

10+ Year Member



it was well formed-ness but I think I found the problem.
I had some ampersands in the xml text, which I replaced with &amp;

Do all reserved characters have to be like that?

choster

10:26 pm on Jan 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do all reserved characters have to be like that?
Yes.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month