Article View: fr.comp.text.xml
Article #9213Re: DOMXML - PHP 4.0.5 - PHPBuilder
From: Luc Saint-Elie
Date: Fri, 11 May 2001 05:06
Date: Fri, 11 May 2001 05:06
65 lines
3232 bytes
3232 bytes
Note : j'avais r�pondu en modifiant le titre.. oubliant qu'on est sur un liste php pas xml.. >Pourquoi as-tu besoin d'une section CDATA pour du texte en fran�ais ??? Bonne question (et si je fausse route je suis preneur d'indication) Je suis entrain de me faire un syst�me de news. Certaines classes (c'est le cas de phpxml par exemple) se vautrent sur les apostrophes d'autre part dans les textes de ces news, je peux avoir du HTML (des liens, des listes <il><li>...) dans ce cas l�, �a coince. En encapsulant le texte de la news dans du CDATA (ce qui est pr�vu pour apr�s tout) �a roule sans probl�me : http://www.w3.org/TR/REC-xml#sec-cdata-sect [Definition: CDATA sections may occur anywhere character data may occur; they are used to escape blocks of text containing characters which would otherwise be recognized as markup. CDATA sections begin with the string "<![CDATA[" and end with the string "]]>":] [...] An example of a CDATA section, in which "<greeting>" and "</greeting>" are recognized as character data, not markup: <![CDATA[<greeting>Hello, world!</greeting>]]> Je suis exactement dans ce cas.. mais preneur de toute alternative !!! en gros si j'ai <text> n'importe quoi peut arriver <a href="nimportequoi.php">ici</a> </text> Comment est-ce que je peux manipuler ce bloc sans CDATA ? merci Luc On Thu, 10 May 2001 22:43:31 GMT, Tom. <ptittom+news@free.fr> wrote: >In <jv0mft0mq12fdnh6qfragmpaqv9k3685tg@4ax.com>, Luc Saint-Elie wrote: >> >0 ce sujet, l'ajout de node focntionne au poil avec phpDOM si on >> >utilise pas de <![CDATA[......]]> >> >mais si on en utilsie j'ai un erreur serveur (je suis chez Online en >> >4.4pl1) >> Future development should cover a CharacterData which then >> extend to- Text nodes- CData Sections >> >> --------------------------- >> >> C'est mal engag� pour du texte fran�ais... > >Pourquoi as-tu besoin d'une section CDATA pour du texte en fran�ais ??? > >fu2 fctx > >Tom.
Technical Details
Message-ID:
<89tmftotrsvc5qs28b7iiv24smq9q4e719@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2-1.proxad.net!nnrp6.proxad.net.POSTED!not-for-mailReferences:
<3AFA8A32.8060304@medasys.fr> <1114149.taCxCBeP46@ltgt.net> <3fvlft8e7411me1jd550331693r00qtbki@4ax.com> <jv0mft0mq12fdnh6qfragmpaqv9k3685tg@4ax.com> <2869775.OF2fMDQidc@ltgt.net>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,b896db95716702ee,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-05-10 22:06:01 PST Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2-1.proxad.net!nnrp6.proxad.net.POSTED!not-for-mail From: Luc Saint-Elie <luc@saint-elie.com> Newsgroups: fr.comp.text.xml Subject: Re: DOMXML - PHP 4.0.5 - PHPBuilder Organization: Saint-Elie Reply-To: luc@saint-elie.com Message-ID: <89tmftotrsvc5qs28b7iiv24smq9q4e719@4ax.com> References: <3AFA8A32.8060304@medasys.fr> <1114149.taCxCBeP46@ltgt.net> <3fvlft8e7411me1jd550331693r00qtbki@4ax.com> <jv0mft0mq12fdnh6qfragmpaqv9k3685tg@4ax.com> <2869775.OF2fMDQidc@ltgt.net> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 66 Date: Fri, 11 May 2001 05:06:00 GMT NNTP-Posting-Host: 195.132.202.86 X-Complaints-To: abuse@proxad.net X-Trace: nnrp6.proxad.net 989557560 195.132.202.86 (Fri, 11 May 2001 07:06:00 CEST) NNTP-Posting-Date: Fri, 11 May 2001 07:06:00 CEST