Ian, I like the way you think, but just be careful (for this method, or the larger XML method) that there are certain special Xml characters that cannot be used. Obviously, for the small sample, its not an issue, but be aware of links that will have "&" characters in the HREFs or anything like that as they will throw errors when parsing. When in doubt, use XmlFormat() method to return a properly escaped string. However, if the document is static, that would be overkill, just escape whatever breaks:
Ex. & == > & ....................... Ben Nadel www.bennadel.com -----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 6:40 PM To: CF-Talk Subject: RE: Better way to describe a menu. Well I tweaked on the XML idea and said to myself, "Hey silly, HTML should also be valid XML so don't re-invent so much of the wheel." I then came up with this for my XML: <cfxml variable="menu"> <?xml version="1.0" encoding="iso-8859-1"?> <menu> <a href="http:\\www.google.com">A Link</a> <a href="http:\\www.google.com">B Link <menu> <a href="http:\\www.google.com">Sublink 1</a> <a href="http:\\www.google.com">Sublink 2</a> <a href="http:\\www.google.com">Sublink 3</a> </menu> </a> <a href="http:\\www.google.com">C Link</a> </menu> </cfxml> Then I just reference the href attribute and xmlText properties of the A nodes in my custom tag. Works pretty sweetly in my mind. -------------- 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:241380 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

