Search Results

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: Mapper99 ; Forum: XML, XSLT and XPATH and child forums
Forum: XML, XSLT and XPATH Oct 2nd, 2009
Replies: 1
Views: 1,007
Posted By Mapper99
For those of you could not figure this one out, after a few tries I got it:


$users = new DOMDocument();
$users->load("officedata.xml");

$suser = simplexml_load_file("officedata.xml");...
Forum: XML, XSLT and XPATH Oct 1st, 2009
Replies: 1
Views: 1,007
Posted By Mapper99
Hi there,

I am trying to delete XML nodes using PHP. Here is a sample of my xml file.

<users>
<user>
<fullname>PC1</fullname>
<floor>4</floor>
</user>
<user>
Forum: XML, XSLT and XPATH Jun 4th, 2008
Replies: 0
Views: 1,716
Posted By Mapper99
I can't seem to get a case insensitive search to work using an XPATH query.

This code works:

$lats = $users->xpath("/users/user[contains(.,'$fullname')]/lat");

This code does not work:
...
Showing results 1 to 3 of 3

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC