Re: DOMXML Warning

From: Date: Wed, 13 Feb 2008 19:16:09 +0000
Subject: Re: DOMXML Warning
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-269254@lists.php.net to get a copy of this message
On Feb 13, 2008 1:20 PM, Daniel Brown <parasane@gmail.com> wrote: > On Feb 13, 2008 2:51 AM, Miguel J. Jiménez > <MiguelJose.Jimenez@isotrol.com> wrote: > > Hi, after enabling error reporting with E_ALL I am having this strange > > warning while loading a XML: > > > > Warning: DOMDocument::load() [function.DOMDocument-load]: Extra content > > at the end of the document in [...] > > Is there an extra whitespace or carriage return/newline after the > final closing tag? > > -- > </Dan> > > Daniel P. Brown > Senior Unix Geek > <? while(1) { $me = $mind--; sleep(86400); } ?> > > I don't think extra whitespace will do that. Even comments after the closing element tag should be OK. This looks more like a document with multiple "root" elements or other non-whitespace characters after the closing root element tag. Andrew

« previous php.general (#269254) next »