Chris, Thanks! That worked perfectly! I wish I had thought of that! Here's some sample code:

<cfset xmlPeople = '<people><person name="Avi Flax" heightfeet="6" heightinches="5" haircolor="brown"/><person name="Adam Cantrell" heightfeet="" heightinches="" haircolor=""/></people>'>
<cfset xmlPeople = xmlParse(xmlPeople)>
<cfset xmlPeople.people.xmlChildren[1].xmlAttributes.PersonID = 666>
<cfdump var="#xmlPeople#" label="xmlPeople">

>I honestly don't know whether this will work in CF or not, but have you
>tried:
>xmlPeople.xmlRoot.xmlChildren[1].xmlAttributes.personid = 34442
>
>that's the way they be doin it over in actionscript.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to