The xmlSearch() returns an array of XML object nodes using regular XPath _expression_ like

e.g..

myBook =  xmlSearch(xmlBooks, "Books/[EMAIL PROTECTED]'ColdFusion']");

Then you can plough through the array returned to do whatever

Joe Eugene
  ----- Original Message -----
  From: Alexander Sherwood
  To: CF-Talk
  Sent: Tuesday, December 02, 2003 2:33 PM
  Subject: XmlSearch() returning Attribute Values

  It seems as if XML Search only returns element nodes, and that's it. Poor,
  poor, poor planning, IMHO.

  Has anyone created a work around, for example, for doing the following:

  ---

  XMLSearch(xmlDoc, '/document/node/@attributeVal')

  ---

  to return the string value of the attribute "attributeVal" for element "node"?

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