On Wednesday, Jun 25, 2003, at 08:07 US/Pacific, Joe Eugene wrote:
> 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...

The docs say:

"Description
        Uses an XPath language expression to search an XML document that is 
represented as a string variable.
Return value
        An array of XML object nodes that match the search criteria."

The result of xmlSearch() is an array, not an XML doc.

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

As I said in my previous response:
> ----- Original Message -----
> From: "Sean A Corfield" <[EMAIL PROTECTED]>
> Sent: Tuesday, June 24, 2003 11:38 PM
>>
>> 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

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

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

Reply via email to