Women in Technology

Hear us Roar



Article:
  Using PHP 5's SimpleXML
Subject:   xsearch -> xpath
Date:   2005-05-09 04:34:22
From:   KvdnBerg
I'm not sure about this but I think you need to use $s->xpath instead of $s->xsearch, at least in my setup (PHP5 on Apache2 on Linux) xsearch gives an undefined method error while xpath gives the correct results.
Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • xsearch -> xpath
    2005-12-27 13:53:41  GaryKG [View]

    Thanks for the tip. I got nowhere with xsearch, but with xpath, it started working.
    • xsearch -> xpath
      2009-12-17 14:28:53  registrationsucks2 [View]

      Thanks from me too, I just wasted an hour trying to figure what I'd gone wrong, even the tutorial verbatim didn't work.

      Any ideas why it's doing this though? I assume the majority are okay with xsearch else they would have changed it by now?