homepage Welcome to WebmasterWorld Guest from 54.226.80.196
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
element error
jackvull




msg:3234011
 4:00 pm on Jan 27, 2007 (gmt 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?

 

choster




msg:3236337
 8:35 pm on Jan 29, 2007 (gmt 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.

jackvull




msg:3236348
 8:44 pm on Jan 29, 2007 (gmt 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?

choster




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

Do all reserved characters have to be like that?
Yes.
Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved