The is getting a little weird..

xmlFirstSearch = xmlSearch(odoc, "Books/[EMAIL PROTECTED]'Reference Book']");

Now i want to search the Result of the the First Search..

xmlSecondSearch = xmlSearch(xmlFirstSearch, "Book/Author']");

The above doesnt seem to work.. because xmlFirstSearch is NOT a valid XML
DOC...

Is there work around this Other than Searching the Orginal DOC again.

xmlSecondSearch = xmlSearch(odoc "Book/[EMAIL PROTECTED]'Reference
Book']/Author");

Thanks,
Joe Eugene


----- Original Message ----- 
From: "Sean A Corfield" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 11:38 PM
Subject: Re: xml XPath Equivalent in CF Notation


> On Tuesday, Jun 24, 2003, at 20:04 US/Pacific, Joe Eugene wrote:
> > Cant figure this one out OR is it possible in CF xml Notation.
> >
> > XML..
> > <Books>
> >    <Book type="Reference Book">
> >      <Title>Java Programming</Title>
> >      <Author>Ivor Horton</Author>
> >      <Author>Ivor Horton</Author>
> >   </Book>
> > </Books>
> > Here is what i want to return using XPath...All the "Author" for node
> > Element "Book"
> >
> > <cfdump var="#xmlSearch(odoc, "Books/Book[1]/Author")#">
> >
> > What is the CF Equivalent to the above in CFMX Notation
> > odoc.xmlRoot.Book[1]...?
>
> You can get to the elements of <Book> but that will be an array (I
> think) and you'll have to manually iterate through each element to see
> whether it is <Author> or not.
>
> Sean A Corfield -- http://www.corfield.org/blog/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to