Yeah, you're right.  I haven't done a whole lot with XPath, and it's been a
while since I've done any.  I was totally drawing a blank with coming up
with that _expression_ you gave.  Don't ask me why.

  -----Original Message-----
  From: Roger Benningfield [mailto:[EMAIL PROTECTED]
  Sent: Saturday, October 18, 2003 2:37 AM
  To: CF-Talk
  Subject: Re:Good way to search XML

  ><user-list>
  >  <user username="barneyb">
  >    <name>Barney Boisvert</name>
  >    <password>myPass</password>
  >  </username>
  ><user-list>
  >
  >...If you want to search that same snip by name, you
  >have to use XPath to get the entire user list in a CF array, and then
loop
  >the array and search.

  Barney,

  Any reason you wouldn't just use:

  //user[name='Barney Boisvert']

  --
  Roger Benningfield
  JournURL
  community-powered weblogs & diaries
  work: http://journurl.com/
  blog: http://admin.support.journurl.com/

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to