I've had that same experience attempting xmlParse -- the trim was absolutely necessary. This was just a plain 'ol XHMTL document. Not strict XML.
>> > I believe according to the standard, XML isn't allowed to have any white >> > space before the doctype. This is the first I'd heard of a browser >> > refusing to render it though. >> >> Actually IIRC, the XML standard does not care about white space, nothing >> else is allowed before the doctype, but whitespace is ok. >> >> I.E. on the other hand has a different opinion. > > Well that's what I'd remembered reading... and at the time I was trying > to figure out why a particular XmlParse(variable) wasn't working... > turned out XmlParse(trim(variable)) was the fix, because the parser was > choking on white space before the document root element (there wasn't a > doc type in that particular packet). And since then I've always been > sure to trim() before using XmlParse because of that. This is the first > time I can recal anyone disagreeing about the white space, although I > would personally have loved for the standard to insist that the parser > be able to handle white space there. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311975 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

