At 07:45 AM 3/12/2003 -0600, you wrote:

>  I don't know what parser CFMX uses, though since I know nothing about the
>details of parsers, if I did know the name of the parser they are using,
>that wouldn't help me one iota (-;
>
>The Xpath example you are using below is not quite what I am after.  Your
>example:
>
><cfset xRes=xmlSearch(odoc, "/Books/[EMAIL PROTECTED]'Reference Book']")>
>
>says "from the 'Books' node, give me all 'Book' subelements that have an
>attribute 'type', the value of which is 'Reference Book'.  That Xpath
>instruction works identically with CFMX and the MS XML parser.
>
>What I want is this:
><cfset xRes=xmlSearch(odoc, "/Books/Book/@type")>

If I understand correctly, you want just the actual attribute value 
returned, rather than an array with the matching element(s) in it?

>...which says "give me the value of the 'type' attribute from the 'Book'
>subelement of the 'Books' node".  That is where it appears CFMX deviates
>from the Xpath spec, and while I like the addition of the XmlAttributes
>syntax, it doesn't seem like that should completely replace a valid Xpath
>command.

----------------------------------
Alex Sherwood
PHS Collection Agency
THE COLLECTORS
T:   301.215.4200
F:   301.664.6834
W: www.phs-net.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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