> 'Document root element is missing' any idea why?

I think the xml should be something like this, 

<root>
        <item>something1</item>
        <item>something2</item>
        <item>something3</item>
        <item>something4</item>
</root>

which it doesn't look like it is... Ie the only element is the root one

<root>
        something1
        something2
        something3
        something4
</root>

So try something like this....

<cfxml variable="xmldoc"> 
        <root> 
        <cfloop from="1" to="#xmltest.recordcount#" index="x">
        
<item><cfoutput>#xmltest[xmltest.columnlist][x]#</cfoutput></item>
        </cfloop> 
        </root> 
</cfxml> 

Didn't test it naturally, too busy, but HTH.  Let me know if it works :)

-- 
Dc

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184851
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to