Re: special char at pos 0 problem
Brought to you by:
bs_php,
nigelswinson
From: J. C. <jan...@im...> - 2002-05-17 08:01:52
|
Found a simple solution: Add these special chars to preg_match expression on line 2672: Old: elseif (preg_match('/^[a-zA-Z0-9\-_]+/', $nodeTest)) { New: elseif (preg_match('/^[a-zA-Z0-9\-_ÄÖÜäöü]+/', $nodeTest)) { Maybe there are more chars to add? Cheers Jan > -----Ursprüngliche Nachricht----- > Von: php...@li... > [mailto:php...@li...]Im Auftrag von J. > Carmanns > Gesendet: Donnerstag, 16. Mai 2002 17:19 > An: php...@li... > Betreff: special char at pos 0 problem > > > > > > * It makes use of the get_html_translation_table(HTML_ENTITIES) php > > > library > > > * call, so is limited in the same ways. At the time of > writing this > > > seemed > > > * be restricted to iso-8859-1 > > > Hmmm - iso-8859-1 should allow chars like "ä" "ü" "ö" ("ae", > "ue", "oe") and > my XML is valid - but when I use tags like <über/> and call > evaluate() then > I get an error: > > XPath error in XPath.class_cvs.php:2680 While parsing the XPath query > "/Daten[1]/Visite[1]/über[1]/*" an empty and therefore invalid > node-test has > been found. > > When I change the first letter it is fine. It only happens when > the special > char is at position 0 in the nodeName. > > Help? |