e.g.
<cfxml variable="xmlTest">
<company>
<departments>
<marketing>
<employee manager="true">
<firstname>Bob</firstname>
<surname>Cratchitt</surname>
<email>[EMAIL PROTECTED]</email>
</employee>
<employee>
<firstname>Tiny</firstname>
<surname>Tim</surname>
<email>[EMAIL PROTECTED]</email>
</employee>
</marketing>
<sales>
</sales>
<finance>
</finance>
</departments>
</company>
</cfxml><cfset xSearch = XMLSearch(xmlTest, "/company/departments/marketing")>
<cfxml variable="newXml"><cfoutput><root>#xSearch[1].toString()#</root></cfoutput></cfxml>
<cfset xSubSearch = XMLSearch(newXml,"/root/marketing/[EMAIL PROTECTED]")>
<cfdump var="#xSubSearch#">
Spike
Mark M wrote:
Hey All,
Is there a way, because I can't seem to find one, where I can go:
<cfscript>
xSearch = XMLSearch(XMLDoc, "/root/branch/");
xSearchSub = XMLSearch(xSearch,
"/extra/[EMAIL PROTECTED]");
</cfscript>
Without it throwing a total wobbly?
I tried taking the individual nodes of the xSearch result, and searching
on them, or using them to create a new XML document.. but they don't
seem to resolve into REAL XML elements.
Either (a) you can't do this or (b) I'm missing something.
TIA
Mark
------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
-- Stephen Milligan Software Architect for http://www.bestrates.com.au MSN: [EMAIL PROTECTED]
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
