If you're looking specifically for that element, I'd use XPath/XMLSearch(). Try this:
XMLSearch ( mydoc, '/nitf/head/[EMAIL PROTECTED]'ap-online-code']' ) On 5/9/06, Ian Skinner <[EMAIL PROTECTED]> wrote: > <cfset mydoc = XmlParse(xmldoc)> > #mydoc.nitf.head.meta[8].XmlAttributes.content# > > (the above code outputs '1110' as expected) > > But I'm worried about the document changing. Can I somehow retrieve this by > the "name" attribute (in this example 'ap-content-code') instead of position > number? > > Assuming that ap-content-code is a child of the meta node, this should work. > mydoc.nitf.head.meta['ap-content-code'].XmlAttributes.content > > -------------- > Ian Skinner > Web Programmer > BloodSource > www.BloodSource.org > Sacramento, CA > > --------- > | 1 | | > --------- Binary Soduko > | | | > --------- > > "C code. C code run. Run code run. Please!" > - Cynthia Dunning > > Confidentiality Notice: This message including any > attachments is for the sole use of the intended > recipient(s) and may contain confidential and privileged > information. Any unauthorized review, use, disclosure or > distribution is prohibited. If you are not the > intended recipient, please contact the sender and > delete any copies of this message. > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240018 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