Each element in the array should be an XML element.

You need to either turn them into a string, or access the xmlText property to use them.

<cfloop from="1" to="#arrayLen(aID)#" index="i">
<cfoutput>#aId[i].toString()#</cfoutput>
</cfloop>

That shouldn't cause any problems with CFDump though, so I'm not too sure why that doesn't work.

Spike

Niklas Richardson wrote:
Anyone know what is wrong with his:

aID = xmlsearch(xmlparse(sXMLView), "//data/@id");

It returns an array but when I do a dump on aID all the values are
"unknown type".  They should just be a GUID.  Weird no?

Cheers

Niklas




-- Stephen Milligan Consultant for hire http://www.spike.org.uk


-- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



Reply via email to