From: ELNIKOFF Thierry (thierry.elnikoff@caf02.be)
Date: 03/04/2002 - 12:26
Et avec MSXML DOM (Pourquoi n'en avoir que pour Java ? Hmmm ? ) :
xmlDoc.save (filename)
où xmlDoc est un MSXML2.DOMDocument
Thierry
> -----Original Message-----
> From: LAMY Olivier [mailto:LAMY_Olivier@accor-hotels.com]
> Sent: Wednesday, April 03, 2002 2:22 PM
> To: xml-tech@xmlfr.org
> Subject: [xml-tech] Re: DOM
>
>
> exemple avec l'API JDOM (www.jdom.org) :
>
> XMLOutputter XMLOut = new XMLOutputter ();
> XMLOut.output (dom,new FileOutputStream (path file));
> //dom est de type org.jdom.Document
>
> ou avec xerces la classe suivante :
> org.apache.xml.serialize.XMLSerializer
>
> ----- Original Message -----
> From: "Bruno Guillosson" <bruno.guillosson@digitech.fr>
> To: <xml-tech@xmlfr.org>
> Sent: Wednesday, April 03, 2002 2:17 PM
> Subject: [xml-tech] Re: DOM
>
>
> > Désolé je me suis mal exprimé je veux construire un fichier
> à partir d'un
> > DOM
> >
> > merci
> >
> > ----- Original Message -----
> > From: "DELABRE, Caroline" <Caroline.DELABRE@BBL.BE>
> > To: <xml-tech@xmlfr.org>
> > Sent: Wednesday, April 03, 2002 2:09 PM
> > Subject: [xml-tech] Re: DOM
> >
> >
> > Bonjour,
> >
> > Quel logiciel veux-tu utiliser pour récupérer ce document ?
> >
> > en VBA, sous excel, pour récupérer un fichier xml avec DOM, tu peux
> utiliser
> > un code semblable à celui-ci :
> >
> >
> > --------------------------------------------------
> > Private Sub traitement_Click()
> > 'code à lancer
> >
> > Workbooks.Open "V:\monfichier.xls"
> > Set wb = ActiveWorkbook
> > Set sh1 = wb.Sheets("Sheet1")
> >
> > Dim xDoc As MSXML2.DOMDocument26
> > Set xDoc = New MSXML2.DOMDocument26
> >
> > xDoc.validateOnParse = False
> > If xDoc.Load("V:\monfichierxml.xml") Then
> > DisplayNode xDoc.childNodes, 0
> > End If
> > wb.SaveAs "V:\monfichier2.xls"
> > wb.Close
> >
> > End Sub
> >
> --------------------------------------------------------------
> ------------
> -
> > Public Sub DisplayNode(ByRef Nodes As
> MSXML2.IXMLDOMNodeList, ByVal Indent
> > As Integer)
> >
> > Dim xNode As MSXML2.IXMLDOMNode
> > Dim xAttr As MSXML2.IXMLDOMAttribute
> > For Each xNode In Nodes
> >
> > Select Case xNode.nodeName ' ici, on définit le traitement à
> > effectuer selon le noeud rencontré.
> > Case "LIST": GoSub List_P
> > Case "POINT":
> > GoSub Point
> > End Select
> >
> > If xNode.hasChildNodes Then
> > DisplayNode xNode.childNodes, Indent
> > End If
> > Next xNode
> >
> > List_P:
> > 'traitement pour le noeud "LIST"
> > return
> > Point:
> > ' traitemlent pour le noeud "POINT"
> > return
> >
> >
> > End Sub
> >
> --------------------------------------------------------------
> ------------
> --
> > --------------------
> >
> > cordialement,
> >
> > Caroline DELABRE
> > ING Investment Management - IT SDM
> > tel : +32.2.54.77.634
> > mail : caroline.delabre@bbl.be
> >
> >
> >
> > > -----Original Message-----
> > > From: Bruno Guillosson [SMTP:bruno.guillosson@digitech.fr]
> > > Sent: Wednesday, April 03, 2002 2:01 PM
> > > To: xml-tech@xmlfr.org
> > > Subject: [xml-tech] DOM
> > >
> > > Bonjour à tous,
> > >
> > > Quelqu'un pourrait il me dire comment récupérer un
> fichier (File par
> > exemple en java)
> > > à partir d'un objet DOM (si c'est faisable ...)
> > >
> > > merci par avance pour tout exemple ou autre ...
> > >
> > >
> > >
> > > Bruno Guillosson
> > > Analyste-Programmeur
> > > Digitech Marseille France
> > >
> > >
> > > --
> > > Devenez redacteur <XML>fr et contribuez au developpement du
> > > xml francophone (http://xmlfr.org/infos/redacteurs/) !
> > >
> > > Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
> > >
> > > Cette liste est a votre disposition pour discuter en francais de
> > > tout sujet technique lie a XML.
> > >
> > > Pour resilier votre abonnement, envoyez un message contenant
> > > la commande "unsubscribe" a xml-tech-request@xmlfr.org
> > > (mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
> > --
> > Devenez redacteur <XML>fr et contribuez au developpement du
> > xml francophone (http://xmlfr.org/infos/redacteurs/) !
> >
> > Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
> >
> > Cette liste est a votre disposition pour discuter en francais de
> > tout sujet technique lie a XML.
> >
> > Pour resilier votre abonnement, envoyez un message contenant
> > la commande "unsubscribe" a xml-tech-request@xmlfr.org
> > (mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
> >
> > --
> > Devenez redacteur <XML>fr et contribuez au developpement du
> > xml francophone (http://xmlfr.org/infos/redacteurs/) !
> >
> > Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
> >
> > Cette liste est a votre disposition pour discuter en francais de
> > tout sujet technique lie a XML.
> >
> > Pour resilier votre abonnement, envoyez un message contenant
> > la commande "unsubscribe" a xml-tech-request@xmlfr.org
> > (mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
>
>
>
> **************************************************************
> ********
> Ce message électronique et tous les fichiers joints ainsi que les
> informations contenues dans ce message (ci après "le message"), sont
> confidentiels et destinés exclusivement à l'usage de la
> personne à laquelle
> ils sont adressés. Si vous avez reçu ce message par erreur,
> merci de le
> renvoyer à son émetteur et de le détruire. Toute diffusion,
> publication,
> totale ou partielle ou divulgation sous quelque forme que ce soit non
> expressément autorisées de ce message, sont interdites.
>
> **************************************************************
> ********
> This e-mail, any attachments and the information contained
> (herein " the
> message") are confidential and intended solely for the use of the
> addressee(s) if you have received this message in error
> please send it back
> to the sender and delete it. Unauthorized publication, use,
> dissemination or
> disclosure, either whole or partial, of this message is strictly
> prohibited.
> --
> Devenez redacteur <XML>fr et contribuez au developpement du
> xml francophone (http://xmlfr.org/infos/redacteurs/) !
>
> Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
>
> Cette liste est a votre disposition pour discuter en francais de
> tout sujet technique lie a XML.
>
> Pour resilier votre abonnement, envoyez un message contenant
> la commande "unsubscribe" a xml-tech-request@xmlfr.org
> (mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
>
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|