Kick me out an XML document today and I will try to take time tonight to create an XPath function to pull the parent for you. Let me know what parameter you are searching for (the child) and I will return the parent and or parents for you. (It can also include looking for children with certain attributes... and return the parent. Don't do it often... but it should be very able from my experience... let's see how it works in this appliation though.
John Farrar > How would you retrieve the parent node when you do a xmlSearch to retrieve a subset of an xml document. You would not have the parent node in this situation. Thanks for the links, this helps. > > Tom > > -----Original Message----- > From: John Farrar [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 02, 2002 9:25 AM > To: [EMAIL PROTECTED] > Subject: Re: [cf-xml] ColdFusion MX and XML > > > Here are the live docs... > > http://livedocs.macromedia.com/cfmxdocs/ > > go to this page... > > http://livedocs.macromedia.com/cfmxdocs/CFML_Reference/functions-pt022.jsp#3 > 468770 > > Let me know if you need more information than this page gives. The question > about finding a node's parent node... with XML it seems like you would know > the parent node or you could not reach the child node? Were you asking how > to find a child node? Could you give me an example... that will help. > > John Farrar > > > Does ColdFusion MX provide a way to access typical methods and properties > of nodes when working with XML? How do you find a particular node's parent > node for example? > > > > Thanks - Tom > > > > -----------------------+ > > cf-xml mailing list > > http://torchbox.com/xml/list.cfm > > > > > > > -----------------------+ > cf-xml mailing list > http://torchbox.com/xml/list.cfm > > -----------------------+ > cf-xml mailing list > http://torchbox.com/xml/list.cfm > -----------------------+ cf-xml mailing list http://torchbox.com/xml/list.cfm
