Hi, I'm working on parsing an xml document and have run into a brick wall. A portion of the xml is below... Here's the issue... I can sucessfully retrieve the "ap-online-code" using the following code: <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? Thanks, Jonathan <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE nitf SYSTEM "nitf.dtd"> <nitf> <head> <meta name="ap-transref" content="V1463"/> <meta name="ap-origin" content="pf1apon"/> <meta name="ap-selector" content="-----"/> <meta name="ap-category" content="a"/> <meta name="ap-format" content="bx"/> <meta name="ap-routing" content="ENTITLEMENTS,pfONLINE,pf1110"/> <meta name="ap-profile-country" content="country: United States; ISOCountry3: USA; UNTop: 021; APGroup: NorthAmerica"/> <meta name="ap-online-code" content="1110"/> <meta name="ap-cycle" content="AP"/> <meta name="ap-keyword" content="Walking Across America"/> <meta name="ap-xhl" content="Once 410 Pounds, California Man Nears End of His Cross-Country Odyssey"/> <meta name="ap-dheadline" content="Man nears end of his cross-country odyssey"/> <meta name="ap-dxhl" content="Once 410 pounds, California man nears end of his cross-country odyssey"/> <docdata> <doc-id regsrc="AP" id-string="D8HG6H880"/> <urgency ed-urg="7"/> <date.issue norm="20060509T100123Z"/> <du-key key="Walking Across America"/> <doc.rights owner="http://www.ap.org" agent="http://license.icopyright.net" type="online,reprint"/> <doc.copyright year="2006" holder="Copyright 2006 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed."/> </docdata> </head>
.............. </nitf> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240003 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

