I have a newly created XML document:

 <cfscript>
        file_log = XmlNew();
        file_log.xmlRoot = XmlElemNew(file_log, "Collection");
        file_log.xmlRoot.XmlChildren[1] = XmlElemNew(file_log, "File");
 </cfscript>

I want to loop over some values and insert them, so the document ends up
looking something like this:

<collection>
        <file>some value</file>
        <file>some value</file>
        <file>some value</file>
        <file>some value</file>
</collection>

I'm trying to insert with some variation of: 

 <cfset StructInsert(file_log.Collection.XmlAttributes, "File",
"selectedElements[i].XmlAttributes.id#.pdf")> 

But I keep getting this error with every thing I try:

Missing argument name. When using named parameters to a function, every
parameter must have a name.

I'm not getting what I'm missing?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to