Return-Path: Delivered-To: apmail-cocoon-users-fr-archive@www.apache.org Received: (qmail 61306 invoked from network); 9 Dec 2005 17:39:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Dec 2005 17:39:05 -0000 Received: (qmail 29281 invoked by uid 500); 9 Dec 2005 17:39:04 -0000 Mailing-List: contact users-fr-help@cocoon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users-fr@cocoon.apache.org Delivered-To: mailing list users-fr@cocoon.apache.org Received: (qmail 29270 invoked by uid 99); 9 Dec 2005 17:39:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2005 09:39:04 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [193.252.22.20] (HELO smtp12.wanadoo.fr) (193.252.22.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2005 09:39:03 -0800 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1202.wanadoo.fr (SMTP Server) with ESMTP id EB5DA1C000C3 for ; Fri, 9 Dec 2005 18:38:41 +0100 (CET) Received: from horus-groupe.fr (LSt-Amand-152-31-27-242.w82-127.abo.wanadoo.fr [82.127.82.242]) by mwinf1202.wanadoo.fr (SMTP Server) with ESMTP id B03021C000BD for ; Fri, 9 Dec 2005 18:38:41 +0100 (CET) X-ME-UUID: 20051209173841721.B03021C000BD@mwinf1202.wanadoo.fr X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: xml dans message post Date: Fri, 9 Dec 2005 18:38:38 +0100 Message-ID: <12E41EBC9D97EA44AEFCD62CD583BF985B0883@serveur.LAFAYETTE.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: xml dans message post Thread-Index: AcX84A7maNjNvQe6Tl+EWHsIM4DUkAAByZsw From: "Philippe LAPLANCHE" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Merci pour le coup de main ... je ne connais pas les flowscript, =E7a me = parait tr=E8s obscur encore. Quelqu'un peut faire l'exercice =E0 ma = place ? Philippe -----Message d'origine----- De=A0: Jean-Baptiste Quenot [mailto:jbq@anyware-tech.com]=20 Envoy=E9=A0: vendredi 9 d=E9cembre 2005 17:46 =C0=A0: users-fr@cocoon.apache.org Objet=A0: Re: xml dans message post * Philippe LAPLANCHE: > Maintenant comment puis-je faire si dans le contenu de la > requ=EAte post, se trouvent des donn=E9es au format xml ? Est-il > possible de parser ces donn=E9es directement depuis mon xsp ? Un exemple en FlowScript: /** * Parse given string and returns an XML document */ function loadDocumentFromString(serializedContent) { var parser =3D null; try { parser =3D = cocoon.getComponent(Packages.org.apache.excalibur.xml.dom.DOMParser.ROLE)= ; var input =3D new = java.io.ByteArrayInputStream(serializedContent.getBytes()) var is =3D new Packages.org.xml.sax.InputSource(input); return parser.parseDocument(is); } finally { cocoon.releaseComponent(parser); } } Je te laisse faire la traduction en Java pour XSP =E0 titre d'exercice=A0;) --=20 Jean-Baptiste Quenot Syst=E8mes d'Information ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/ --------------------------------------------------------------------- Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org Autres commandes : mailto:users-fr-help@cocoon.apache.org -------------------------------------------------------------------------= -------------- Wanadoo vous informe que cet e-mail a ete controle par l'anti-virus = mail.=20 Aucun virus connu a ce jour par nos services n'a ete detecte. --------------------------------------------------------------------- Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org Autres commandes : mailto:users-fr-help@cocoon.apache.org