Sorry.  Hit "send" too soon.  The devnet version of ColdFusion
introduces a <meta> tag that identifies itself as a devnet version.
That meta tag is placed within the head (beginning with v7.0) of HTML
documents, but since XML docs don't have that tag CF just puts it in
at the top of the document.  This wreaks all kinds of havoc on XML
stuff.

See if you can strip it before trying to use the content:

<cfset variables.content = REReplaceNoCase ( cfhttp.fileContent,
'^.*?<?xml', '<?xml' ) />

<cfdump var="#XMLParse ( variables.content )#" />

On 6/9/06, Rob Wilkerson <[EMAIL PROTECTED]> wrote:
> Aha.  You're using a devnet version of CF.
>
> On 6/9/06, Howard Owens <[EMAIL PROTECTED]> wrote:
> > The error is:
> >
> > An error occured while Parsing an XML document.
> > The element type "meta" must be terminated by the matching end-tag "".
> >
> > At this point:
> >
> > <cfset xmlFile = xmlparse(cfhttp.filecontent)>
> >
> >
> >
> >
> >
> > >What error message do you get?  I can subscribe to this feed in my
> > >parser just fine (whose first step is an XMLParse()).  I assume you're
> > >making a CFHTTP call to retrieve the content?  Check that content to
> > >see whether whitespace - or any other character data - is being
> > >introduced before the declaration.
> > >
> > >
> > >On 6/9/06, Howard Owens <[EMAIL PROTECTED]> wrote:
> > >>
> >
> > 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243086
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to