Article View: fr.comp.text.xml
Article #9212CDATA (ex Re: DOMXML - PHP 4.0.5 - PHPBuilder)
From: Luc Saint-Elie
Date: Fri, 11 May 2001 05:02
Date: Fri, 11 May 2001 05:02
62 lines
3052 bytes
3052 bytes
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 phpXxml 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:
<jqsmftshjoa2jagvskmpe2a9ddltbeihlo@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.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,ccd875742b3a3284,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-05-10 22:02:35 PST Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.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: CDATA (ex Re: DOMXML - PHP 4.0.5 - PHPBuilder) Organization: Saint-Elie Reply-To: luc@saint-elie.com Message-ID: <jqsmftshjoa2jagvskmpe2a9ddltbeihlo@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: 63 Date: Fri, 11 May 2001 05:02:34 GMT NNTP-Posting-Host: 195.132.202.86 X-Complaints-To: abuse@proxad.net X-Trace: nnrp6.proxad.net 989557354 195.132.202.86 (Fri, 11 May 2001 07:02:34 CEST) NNTP-Posting-Date: Fri, 11 May 2001 07:02:34 CEST