xml error in ajax

ajax , xml India
  • 13 years ago
    if there is no one can who can solve my problem.
    i have and error in ajax. and ie xml declaration not at start of external entity.
    how i can remove it.

    XML Parsing Error: xml declaration not at start of external entity
    Line Number 1, Column 2:    <?xml version='1.0' encoding='iso-8859-1'?><list_data>    <id>1</id>    <name>England</name>    <id>2</id>    <name>France</name>    <id>3</id>    <name>Germany</name>    <id>4</id>    <name>Italy</name></list_data>

    thanks again

  • 13 years ago
    Try this for your XML data, it's more readable:

    <?xml version="1.0" encoding="iso-8859-1"?>





    Then you just parse each 'entry'.

    One note: the <?xml ?> MUST be the FIRST thing in the file (no space, tab etc... before it).

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We better hurry up and start coding, there are going to be a lot of bugs to fix.”