🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9060

Données XML dans une balise CDATA.

#9060
From: Dario Efine
Date: Mon, 11 Jun 2001 16:19
27 lines
1649 bytes
Salut � tous,

J'ai besoin de stocker un document XML � l'int�rieur de donn�es XML.
La solution � laquelle j'ai pens�e imm�diatement est  d'inclure les
informations XML entre deux balises CDATA :

...
<![CDATA[
        <Size>1000x1000</Size>
        <Objects>
                <Circle>
                        <Center>(50,50)</Center>
                        <Radius>25</Radius>
                </Circle>
                <Rectangle>
                        <Mode>Add</Mode>
                        <Bounds>(300,300)-(400,400)</Bounds>
                </Rectangle>
        </Objects>
]]>
...

Cependant, si les donn�es XML que je doit inclure contiennent elle-m�me
des CDATA, le parser ne va-t-il pas y perdre son latin (son XML plut�t&#8230;) ?
Dans ce cas, fais-je alors fausse route ?

-Dario
Technical Details
Message-ID: <6d3e0772.0106110819.231220b@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,dc443e464d53d201
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-06-11 09:19:57 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail
From: DEfine@iFrance.com (Dario Efine)
Newsgroups: fr.comp.text.xml
Subject: Données XML dans une balise CDATA.
Date: 11 Jun 2001 09:19:56 -0700
Organization: http://groups.google.com/
Lines: 27
Message-ID: <6d3e0772.0106110819.231220b@posting.google.com>
NNTP-Posting-Host: 212.234.188.66
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 992276397 2217 127.0.0.1 (11 Jun 2001 16:19:57 GMT)
X-Complaints-To: groups-support@google.com
NNTP-Posting-Date: 11 Jun 2001 16:19:57 GMT