note 105881 added to domxpath.query

From: Date: Thu, 22 Sep 2011 16:05:26 +0000
Subject: note 105881 added to domxpath.query
Groups: php.notes 
Request: Send a blank email to php-notes+get-183353@lists.php.net to get a copy of this message
A warning to all PHP programmer using this function PHP 5.0.0.0: We needed an equivalent to upper-case() function (is not available in XPath 1.0). XML-Document: <Rec> <SourceRef>./c:calendar2</SourceRef> <SourceRef>./c:calendar</SourceRef> </Rec> using query('//DataStore[translate(SourceRef,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")="./C:CALENDAR"]/.') returns ZERO matches. If you change XML-Source to <Rec> <SourceRef>./c:calendar</SourceRef> <SourceRef>./c:calendar2</SourceRef> </Rec> everything works fine ---- Server IP: 69.147.83.197 Probable Submitter: 84.176.19.234 ---- Manual Page -- http://www.php.net/manual/en/domxpath.query.php Edit -- https://master.php.net/note/edit/105881 Del: integrated -- https://master.php.net/note/delete/105881/integrated Del: useless -- https://master.php.net/note/delete/105881/useless Del: bad code -- https://master.php.net/note/delete/105881/bad+code Del: spam -- https://master.php.net/note/delete/105881/spam Del: non-english -- https://master.php.net/note/delete/105881/non-english Del: in docs -- https://master.php.net/note/delete/105881/in+docs Del: other reasons-- https://master.php.net/note/delete/105881 Reject -- https://master.php.net/note/reject/105881 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183353) next »