|
Mailing Lists
|
Home /
Groups /
XML
Search XML Tree help
First off, I'm an XML newbie, but not a CF newbie :)Christopher Chin 10/18/06 06:33 P Something likeRob Wilkerson 10/18/06 07:13 P Thanks Rob! I'll give this a try and let you know how I fare.Christopher Chin 10/19/06 01:44 P First off, I'm an XML newbie, but not a CF newbie :) I'm trying to figure out how to search an xml document that is being handed to me by another process within the company. Basically it's a small database. Here's a sample: <employee id="jsmith"> <fname>John</fname> <lname>Smith</lname> </employee> <employee id="jjones"> <fname>Jack</fname> <lname>Jones</lname> </employee> How do I search the tree and get all of the childnodes for id="jjones"? ID is an attribute of employee and I'm having trouble figuring this out with CF. Any help is much appreciate. thanks! Chris Something like XMLSearch ( myXML, '/employee[@id='jjones']/*' ) Should do the trick. I didn't test this and I'm not certain of the "*", but that should get you in the neighborhood. Rob Wilkerson On Oct 18, 2006, at 6:23 PM, Christopher Chin wrote: ----- Excess quoted text cut - see Original Post for more ----- Thanks Rob! I'll give this a try and let you know how I fare. --Chris ----- Excess quoted text cut - see Original Post for more -----
|
May 21, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||