Click to See Complete Forum and Search --> : Invalid XML file


r_kakos
06-22-2007, 01:26 AM
Hello there, does anybody know what's wrong with this XML?


<?xml version="1.0" encoding="UTF-8"?>
<response>
<return code="4" message="blah blah" />
</response>


I got a message "Can not find declaration of element 'response'." from an XML validator...

Thanks.
Robert

Stephen Philbin
06-22-2007, 08:18 AM
There's no DOCTYPE. You can't validate an XML file against a DTD if there's no DOCTYPE.

r_kakos
06-25-2007, 06:04 AM
It's not supposed to be validated against a DTD schema...

Stephen Philbin
06-25-2007, 07:26 AM
But you said you got the error message from a validator.

jkmyoung
06-25-2007, 12:25 PM
Are you validating against an XML Schema? If so, you might want to post the source.

BlusherBaby
07-06-2007, 09:03 AM
I have saved and opened with browser , so there is no syntax error in this xml file .