Just to clarify actually - -- xMyElem = XMLSearch(xmlDoc, '/root/branch/'); xMyElem = xMyElem[1]; --
Where I know that my xPath is going to only return one element. and then from there <cfoutput>#xMyElem.xmlText#</cfoutput> (wasn't sure if you knew that xmlText existed.. I assumed you did) HTH Mark ------------------------------------------------------------------ [EMAIL PROTECTED] ICQ: 3094740 Safe From Bees [ www.safefrombees.com ] Quoting Mark M <[EMAIL PROTECTED]>: > Yeah - it doesn't work. > > No idea why, very annoying. > > Generally speaking I will often do something like: > > > Just for convenience sake. > > But yes - I agree, it should be supported. > > Sorry to not have been more helpful. > > Mark > > > ------------------------------------------------------------------ > [EMAIL PROTECTED] > ICQ: 3094740 > Safe From Bees > [ www.safefrombees.com ] > > > Quoting Mark Stanton <[EMAIL PROTECTED]>: > > > Hey All > > > > I've got a small issue XMLSearch, I've got an xml document: > > > > <pages> > > <page id="myPage"> > > <title>Blah</title> > > </page> > > </pages> > > > > which I'm reading in as #myXML#. > > > > The following code: > > > > <cfdump var="#XMLSearch(myXML,'/pages/[EMAIL PROTECTED]"myPage"]/title')#"> > > > > outputs an array containing the xml element for <title>, but what I really > > want is just the text "Blah". Going through some XML docs I've read > > (http://www.w3.org/TR/xpath#node-tests, > > http://www.nwalsh.com/docs/tutorials/xsl/xsl/frames.html) it looks like > > text() should return the content of the <title> node. So.... > > > > <cfdump var="#XMLSearch(myXML,'/pages/[EMAIL PROTECTED]"myPage"]/title/text()')#"> > > > > ...but that returns an array containing the text "[unknown type]". > > > > Any ideas? > > > > > > Cheers > > > > Mark > > > > > > ------------------ > > Mark Stanton > > Technical Director > > Gruden Pty Ltd > > Tel: 9956 6388 > > Mob: 0410 458 201 > > Fax: 9956 8433 > > http://www.gruden.com > > > > > > --- > > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > > http://www.mxdu.com/ + 24-25 February, 2004 > > > > > > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > http://www.mxdu.com/ + 24-25 February, 2004 > > > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
