Forums / Developer / Wrong XML construction with ezxml

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Wrong XML construction with ezxml

Author Message

Pierre Tissot

Friday 07 April 2006 5:22:37 am

Hi,

I'm using rssffeed to get information about a news channel, the language is in french but the character apostrophe is not well displayed. (this character is not weel display in this message so I will use the keyword apostrophe, and believe me that in the place should be a apostrophe :-D )

In the original xml document we have this element:

 

<p><img width="67" height="96" alt="affiche_enfant_fr.jpg" src="http://www.cominmagazine.ch/wp-content/uploads/2006/04/affiche_enfant_fr.miniature.jpg" id="image152" /></p>
<p>SynthesisBank, le leader Suisse de la banque d[apostrophe]nvestissement en ligne, collabore depuis plusieurs mois avec l[apostrophe]agence details.ch, de la conception de plaquettes institutionnelles, d[apostrophe]annonces presse, cartes de voeux jusqu[apostrophe]à la réalisation de banners publicitaires et de widget pour Internet.<br />
<br />
</p>
 

once ezplublish loads this file you have the same element whit a diferent content (put ? instead of a [apostrophe]):

 

        // New xml parser.
        $xml = new eZXML();

        $dom =& $xml->domTree( $rssFileContent );
 

doing the toString method we can see that the content is diferent:

 

      <![CDATA[<p><img width="67" height="96" alt="affiche_enfant_fr.jpg" src="http://www.cominmagazine.ch/wp-content/uploads/2006/04/affiche_enfant_fr.miniature.jpg" id="image152" /></p>
<p>SynthesisBank, le leader Suisse de la banque d?investissement en ligne, collabore depuis plusieurs mois avec l?agence details.ch, de la conception de plaquettes institutionnelles, d?annonces presse, cartes de voeux jusqu?à la réalisation de banners publicitaires et de widget pour Internet.<br />
<br />
</p>]]>
 

I try also with

        // New xml parser.
        $xml = new eZXML();
        $params= array("ConvertSpecialChars" => false);
        $dom =& $xml->domTree( $rssFileContent,$params );
 

but no lucky. Is this a bug? or I miss an episode?

Best regards
PiR