Jump to content


Php and XML

  • Please log in to reply
2 replies to this topic

#1 wolves

  • Members
  • PipPipPip
  • Advanced Member
  • 65 posts

Posted 04 April 2006 - 02:35 PM

Ok, I generate this xml code, by an sql instruction..

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

if I open the page using Internet Explorer, it's ok...
but if I open using FIreFox

XML Parsing Error: xml declaration not at start of external entity
Location: ......
Line Number 3, Column 1:

someone help me!! :)

#2 jmag

  • Members
  • PipPip
  • Member
  • 22 posts
  • LocationSweden

Posted 04 April 2006 - 05:38 PM

after what I've read up on you have to remove any extra whitespace you might have at the top or end of the file. That seems to be the things in common when other have had the same error.

either [a href=\"http://www.google.com\" target=\"_blank\"]google[/a] for that error msg, or you could read a bit [a href=\"http://wordpress.org/support/topic/7713\" target=\"_blank\"]here[/a] about it. just scroll down, it takes awhile till they address the problem.

but my tip is to look for whitespace, make sure it's all eliminated where possible at the start and end.


#3 davidoff

  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 04 April 2006 - 07:53 PM

Yep, remove the whitespace.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users