Quickfix99
Technical User
I have some simple xml:
<users>
<title>Floor1</title>
<user>
<fullname>John Doe</fullname>
<ID>Binary Avenue 1234 FL</ID>
<email>john@john-domain.com</email>
<lat>2</lat>
<lon>4</lon>
</user>
</users>
I am trying to retrieve the value of "lat" where "fullname=John Doe" using this PHP based xpath expression:
$lat = $users->xpath('/users/user/[fullname="Janet Smith"]');
Apparently my expression is invalid.
Any ideas?
QF
<users>
<title>Floor1</title>
<user>
<fullname>John Doe</fullname>
<ID>Binary Avenue 1234 FL</ID>
<email>john@john-domain.com</email>
<lat>2</lat>
<lon>4</lon>
</user>
</users>
I am trying to retrieve the value of "lat" where "fullname=John Doe" using this PHP based xpath expression:
$lat = $users->xpath('/users/user/[fullname="Janet Smith"]');
Apparently my expression is invalid.
Any ideas?
QF