Welcome to WebmasterWorld Guest from 23.22.140.143

Forum Moderators: httpwebwitch

Message Too Old, No Replies

element error

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

Preferred Member

10+ Year Member

joined:June 16, 2005
posts:486
votes: 0


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?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
posts:1262
votes: 0


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.
8:44 pm on Jan 29, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:June 16, 2005
posts: 486
votes: 0


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?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
posts:1262
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members