Are you trying to look for a Specific City? What are searching for?
You want to return all cities?

If you want to find a specific city.. below is the syntax.

xmlSearch(myXmlDoc, "Addresses/[EMAIL PROTECTED]'NY']");

for the xml

<Addresses>
  <Address city="AL"/>
  <Address city="NC"/>
  <Address city="NY"/>
</Addresses>

Joe

----- Original Message -----
  From: Alexander Sherwood
  To: CF-Talk
  Sent: Thursday, December 18, 2003 3:58 PM
  Subject: XMLSearch() woes

  If you do the following:

  XMLSearch(xmlDoc, '/addresses/address[1]/@city'),

  you get back an array with one element that contains an empty string.
  Wouldn't you expect it to either return and empty array (because it found
  nothing), or an array with the value of the attribute? I know the docs
  state that XMLSearch returns and XMLElement object, but in this case, it
  most certainly does not!

  Anyone have the same problem?!

  ----------------------------------
  Alex Sherwood
  PHS Collection Agency
  THE COLLECTORS
  T:   301.215.4200
  F:   301.664.6834
  W: www.phs-net.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to