OK, I've spent a lot of time looking at the documentation and it's pretty much 
worthless to me.  Doesn't explain a thing.

The CFXML is creating a standard RSS file that you'd find on any blog.  I want 
to insert a new <item> and *ALL* of its child elements above any and all 
current <item> tags.  The code below is just what I'm working off of.  At the 
moment I'm just trying to add a new <item>...</item> pair, ignoring the child 
elements.

<CFXML VARIABLE="XMLFile"><rss version="2.0">
        <channel>
                <title>Kindly Speaking - Test Log</title>
                <link><CFOUTPUT>#GlobalVars.SiteAddress#</CFOUTPUT></link>
                <language>en-us</language>
                <pubDate><CFOUTPUT>#DateFormat(Now(), "DDD, D MMMM YYYY")# 
#TimeFormat(Now(), "HH:mm:ss")#</CFOUTPUT> +0000</pubDate>
                <CFOUTPUT><item>
                        <title>New Registration 
(#DateFormat(Now(),"YYYY-MM-DD")#, #TimeFormat(Now(), "HH:mm:ss")#)</title>
                        <link>#GlobalVars.SiteAddress#</link>
                        <pubDate>#DateFormat(Now(), "DDD, D MMMM YYYY")# 
#TimeFormat(Now(), "HH:mm:ss")# +0000</pubDate>
                        <guid>#DateFormat(Now(), "DDD, D MMMM YYYY")# 
#TimeFormat(Now(), "HH:mm:ss")#</guid>
                        <description><![CDATA[The user "User" (ID) did 
something on #DateFormat(Now(), "MMMM D, YYYY")# at #TimeFormat(Now(), 
"HH:mm:ss")#.]]></description>
                </item></CFOUTPUT>
        </channel>
</rss></CFXML>

<CFSCRIPT>
        ArrayInsertAt(XMLFile.rss.channel.item,1,XmlElemNew(XMLFile,"item"));
</CFSCRIPT>

This is returning the error, "The Coldfusion function [ArrayInsertAt] is not 
supported on this object."

What am I missing?  I can't get an adequate explanation.

Please help!

--Ben

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241636
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