Problem with Encoding XML entities
Brought to you by:
bs_php,
nigelswinson
From: Breton Y. <Y.B...@le...> - 2002-06-04 15:49:01
|
Hello, I have a problem with the Predefined General Entites of XML (' < etc...) and the evaluate function. Here is my problem: ---------------- 1/ I have a XML file with an entity like this: <ProductColor nameKey="BLEU D'iles"nameKeyType="String"> bla bla </ProductColor> 2/ In my DataBase, the stored value is "BLEU D'iles". 3/ When I try to use the XPath evaluate function as below, it doesn't work of course: $xPath->evaluate("//ProductColor[@nameKey='Bleu d'iles']"); I have also tried : $xPath->evaluate("//ProductColor[@nameKey='Bleu d'iles']"); It doesn't work too. My Questions: ------------ I tried to read carefully the documentation but I didn't find anything for this. I also tries to use to the decodeEntities function but it's only for HTML entities and not XML entities which are not exactly the same. - Is there a function to evaluate with an automatic XML entities encoding. - Or did I miss something ? Thanks ! Yann -- ============================== Yann BRETON R&D Lectra Systemes y.b...@le... ============================== |