> > <Books>
> >    <Book type="Reference Book" publication="" />
> >     <Author firstName="" lastName="" />
> >    </Book>
>
> Shouldn't this be:
>
> <Books>
>     <Book type="Reference Book" publication="">
>      <Author firstName="" lastName="" />
>     </Book>

Yes.. Just a typo.

But really.. isnt this valid for Dom/XSLT/XPath?
xmlSearch(odoc, "Books/[EMAIL PROTECTED]'Reference Book']/Book")

Which should only return. <Book type="Reference Book" publication="" />

Thanks,
Joe Eugene


> -----Original Message-----
> From: Sean A Corfield [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 9:43 PM
> To: CF-Talk
> Subject: Re: xml XPath Equivalent in CF Notation
>
>
> On Wednesday, Jun 25, 2003, at 18:25 US/Pacific, Joe Eugene wrote:
> > Another xml XPath "?"
> > How do i just return "<Book type="Reference Book" publication="" />"
> > via
> > xmlSearch()
>
> Since you get back an array of XML sub-objects, you'll always get the
> <Book ...> tag with
> all its contents - you could just ignore the contents couldn't you?
>
> BTW, if you're closing the <Book ...> tag on that first line, your doc
> would be ill-formed:
>
> > <Books>
> >    <Book type="Reference Book" publication="" />
> >     <Author firstName="" lastName="" />
> >    </Book>
>
> Shouldn't this be:
>
> <Books>
>     <Book type="Reference Book" publication="">
>      <Author firstName="" lastName="" />
>     </Book>
>
> 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