Re: Error in Building an XML File

From: Date: Mon, 09 Mar 2009 14:40:26 +0000
Subject: Re: Error in Building an XML File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-289659@lists.php.net to get a copy of this message
Joe Harman wrote:
Hello, I am using PHP to build an XML file, but I keep on getting an XML error when open the file in Google Chrome. --------------------------------------------------------------------------------- This page contains the following errors: error on line 30 at column 318: Entity 'iuml' not defined Below is a rendering of the page up to the first error. -------------------------------------------------------------------------------- is this something to do with document encoding? I am using these as headers for the script header("content-type:text/xml;charset=utf-8"); header("Content-Disposition:attachment;filename=google_feed.xml"); Thanks Joe
looks like you have and & in the file right before "iuml" which is making the browser think it is an entity - ie invalid xml - ie make sure all &'s are actually & - should fix you up nathan

« previous php.general (#289659) next »