Sounds kind of obvious, but is the document someRss.xml well-formed?
It must have a single root element to be valid.
This block is invalid because there is no single root element:
----------------------------
<record>
<column>some value A</column>
<column>some value B</column>
</record>
<record>
<column>some value C</column>
<column>some value D</column>
<column>some value E</column>
</record>
-------------------------------
This block is valid because there is a single enclosing root element:
-------------------------------
<data>
<record>
<column>some value A</column>
<column>some value B</column>
</record>
<record>
<column>some value C</column>
<column>some value D</column>
<column>some value E</column>
</record>
</data>
-------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/xsl" href="news_rss.xsl"?>
>
> The above code is at the top of an XML feed that I am trying to process. I
> want to remove it, otherwise I get the following error.
>
> Document root element is missing.
> Document root element is missing.
>
> My code looks like this.
> <cfhttp url="http://www.somewebsite.com/rss/someRss.xml" method="get">
> <cfset myXMLDoc=XMLParse(CFHTTP.FileContent)>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275748
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4