Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
François Picalausa
Bonjour/soir,
Pour lire un tel fichier, utilise, dans les références Microsoft XML. Toute les indications d'utilisation sont sur la msdn: http://msdn.microsoft.com/library/en-us/xmlsdk/htm/sdk_intro_6g53.asp
Pour lire un tel fichier, utilise, dans les références Microsoft XML.
Toute les indications d'utilisation sont sur la msdn:
http://msdn.microsoft.com/library/en-us/xmlsdk/htm/sdk_intro_6g53.asp
Pour lire un tel fichier, utilise, dans les références Microsoft XML. Toute les indications d'utilisation sont sur la msdn: http://msdn.microsoft.com/library/en-us/xmlsdk/htm/sdk_intro_6g53.asp
je n'en suis pas si sûr... http://msdn.microsoft.com/library/en-us/xmlsdk/htm/xml_obj_ixmldomattribute_34kl.asp montre comment faire celà. et on est toujours dans la même rubrique.. cqfd ;-)
Tu as aussi un exemple tout en VB: http://msdn.microsoft.com/downloads/samples/internet/xml/xmltree/default.asp
"Alain L" a écrit dans le message de news:255f301c38daf$2b016210$
le chemin http://msdn.microsoft.com/library/en- us/xmlsdk/htm/sdk_intro_6g53.asp
est pour les fichier au format <TOTO>Le Texte</TOTO>
je ne trouve rien pour <TOTO ATTRIB1='Le Texte' ATTRIB2='Le Texte 2'/> (c'est en attibut)
-----Message d'origine----- Bonjour/soir,
Pour lire un tel fichier, utilise, dans les références Microsoft XML. Toute les indications d'utilisation sont sur la msdn: http://msdn.microsoft.com/library/en-
je n'en suis pas si sûr...
http://msdn.microsoft.com/library/en-us/xmlsdk/htm/xml_obj_ixmldomattribute_34kl.asp
montre comment faire celà.
et on est toujours dans la même rubrique.. cqfd ;-)
Tu as aussi un exemple tout en VB:
http://msdn.microsoft.com/downloads/samples/internet/xml/xmltree/default.asp
"Alain L" <alaemle@glf.fr> a écrit dans le message de
news:255f301c38daf$2b016210$a601280a@phx.gbl
le chemin
http://msdn.microsoft.com/library/en-
us/xmlsdk/htm/sdk_intro_6g53.asp
est pour les fichier au format
<TOTO>Le Texte</TOTO>
je ne trouve rien pour
<TOTO ATTRIB1='Le Texte' ATTRIB2='Le Texte 2'/>
(c'est en attibut)
-----Message d'origine-----
Bonjour/soir,
Pour lire un tel fichier, utilise, dans les références Microsoft XML.
Toute les indications d'utilisation sont sur la msdn:
http://msdn.microsoft.com/library/en-
je n'en suis pas si sûr... http://msdn.microsoft.com/library/en-us/xmlsdk/htm/xml_obj_ixmldomattribute_34kl.asp montre comment faire celà. et on est toujours dans la même rubrique.. cqfd ;-)
Tu as aussi un exemple tout en VB: http://msdn.microsoft.com/downloads/samples/internet/xml/xmltree/default.asp
"Alain L" a écrit dans le message de news:255f301c38daf$2b016210$
le chemin http://msdn.microsoft.com/library/en- us/xmlsdk/htm/sdk_intro_6g53.asp
est pour les fichier au format <TOTO>Le Texte</TOTO>
je ne trouve rien pour <TOTO ATTRIB1='Le Texte' ATTRIB2='Le Texte 2'/> (c'est en attibut)
-----Message d'origine----- Bonjour/soir,
Pour lire un tel fichier, utilise, dans les références Microsoft XML. Toute les indications d'utilisation sont sur la msdn: http://msdn.microsoft.com/library/en-
Set MyObjXML = CreateObject("MSXML2.DOMDOCUMENT.4.0") MyObjXML.validateOnParse = False MyObjXML.async = False
Dim MyNode, ActionValue Set MyNode = MyObjXML.selectNodes("root/ACTION") 'Recup de la valeur de l'attribut TYPE du noeud ACTION ActionValue = MyNode.attributes.getNamedItem("TYPE ").nodeValue
Set MyNode = Nothing Set MyObjXML = Nothing ' Ouala c'est tout, si j'ai bien compris ta demande
Pour info je cherche de la doc sur les classes imbriquée ou sous-classée en VB6 si tu connais..... dit moi merci @+ Boss Hog
"Alain L" a écrit dans le message de news:255f301c38daf$2b016210$ > le chemin > http://msdn.microsoft.com/library/en- > us/xmlsdk/htm/sdk_intro_6g53.asp > > est pour les fichier au format > <TOTO>Le Texte</TOTO> > > je ne trouve rien pour > <TOTO ATTRIB1='Le Texte' ATTRIB2='Le Texte 2'/> > (c'est en attibut) > > >> -----Message d'origine----- >> Bonjour/soir, >> >> Pour lire un tel fichier, utilise, dans les références Microsoft XML. >> Toute les indications d'utilisation sont sur la msdn: >> http://msdn.microsoft.com/library/en- > us/xmlsdk/htm/sdk_intro_6g53.asp >> >> -- >> François Picalausa (MVP VB) >> FAQ VB : http://faq.vb.free.fr >> MSDN : http://msdn.microsoft.com >> >> >> "Alain L." a écrit dans le message de >> news:0b3401c38d76$d11ad5c0$ >>> j'ai un petit problème en VB 6.0 >>> pour lire puis modifier un fichier XML >>> formaté avec des attributs. >>> >>> <?xml version='1.0' encoding='utf-8' ?> >>> <jdeRequest pwd='ROBOT' type='ube' user='TOTO' >>> environment='RI7334'> >>> <ACTION TYPE='LAUNCH_JOB'> >>> >>> <REPORT_NAME VALUE='R4981'/> >>> <REPORT_VERSION VALUE='EXPL10001'/> >>> ... >> >> >> .
Bonjour,
d'une je ne voit pas de noeud root dans ton xml mais bon admettons:
Set MyObjXML = CreateObject("MSXML2.DOMDOCUMENT.4.0")
MyObjXML.validateOnParse = False
MyObjXML.async = False
Dim MyNode, ActionValue
Set MyNode = MyObjXML.selectNodes("root/ACTION")
'Recup de la valeur de l'attribut TYPE du noeud ACTION
ActionValue = MyNode.attributes.getNamedItem("TYPE ").nodeValue
Set MyNode = Nothing
Set MyObjXML = Nothing
' Ouala c'est tout, si j'ai bien compris ta demande
Pour info je cherche de la doc sur les classes imbriquée ou sous-classée en
VB6
si tu connais..... dit moi
merci
@+
Boss Hog
"François Picalausa" <fpicalausa@chez.com> wrote in message
news:#fFqvFbjDHA.2416@TK2MSFTNGP10.phx.gbl...
"Alain L" <alaemle@glf.fr> a écrit dans le message de
news:255f301c38daf$2b016210$a601280a@phx.gbl
> le chemin
> http://msdn.microsoft.com/library/en-
> us/xmlsdk/htm/sdk_intro_6g53.asp
>
> est pour les fichier au format
> <TOTO>Le Texte</TOTO>
>
> je ne trouve rien pour
> <TOTO ATTRIB1='Le Texte' ATTRIB2='Le Texte 2'/>
> (c'est en attibut)
>
>
>> -----Message d'origine-----
>> Bonjour/soir,
>>
>> Pour lire un tel fichier, utilise, dans les références Microsoft XML.
>> Toute les indications d'utilisation sont sur la msdn:
>> http://msdn.microsoft.com/library/en-
> us/xmlsdk/htm/sdk_intro_6g53.asp
>>
>> --
>> François Picalausa (MVP VB)
>> FAQ VB : http://faq.vb.free.fr
>> MSDN : http://msdn.microsoft.com
>>
>>
>> "Alain L." <alaemle@glf.fr> a écrit dans le message de
>> news:0b3401c38d76$d11ad5c0$a301280a@phx.gbl
>>> j'ai un petit problème en VB 6.0
>>> pour lire puis modifier un fichier XML
>>> formaté avec des attributs.
>>>
>>> <?xml version='1.0' encoding='utf-8' ?>
>>> <jdeRequest pwd='ROBOT' type='ube' user='TOTO'
>>> environment='RI7334'>
>>> <ACTION TYPE='LAUNCH_JOB'>
>>>
>>> <REPORT_NAME VALUE='R4981'/>
>>> <REPORT_VERSION VALUE='EXPL10001'/>
>>> ...
>>
>>
>> .
Set MyObjXML = CreateObject("MSXML2.DOMDOCUMENT.4.0") MyObjXML.validateOnParse = False MyObjXML.async = False
Dim MyNode, ActionValue Set MyNode = MyObjXML.selectNodes("root/ACTION") 'Recup de la valeur de l'attribut TYPE du noeud ACTION ActionValue = MyNode.attributes.getNamedItem("TYPE ").nodeValue
Set MyNode = Nothing Set MyObjXML = Nothing ' Ouala c'est tout, si j'ai bien compris ta demande
Pour info je cherche de la doc sur les classes imbriquée ou sous-classée en VB6 si tu connais..... dit moi merci @+ Boss Hog
"Alain L" a écrit dans le message de news:255f301c38daf$2b016210$ > le chemin > http://msdn.microsoft.com/library/en- > us/xmlsdk/htm/sdk_intro_6g53.asp > > est pour les fichier au format > <TOTO>Le Texte</TOTO> > > je ne trouve rien pour > <TOTO ATTRIB1='Le Texte' ATTRIB2='Le Texte 2'/> > (c'est en attibut) > > >> -----Message d'origine----- >> Bonjour/soir, >> >> Pour lire un tel fichier, utilise, dans les références Microsoft XML. >> Toute les indications d'utilisation sont sur la msdn: >> http://msdn.microsoft.com/library/en- > us/xmlsdk/htm/sdk_intro_6g53.asp >> >> -- >> François Picalausa (MVP VB) >> FAQ VB : http://faq.vb.free.fr >> MSDN : http://msdn.microsoft.com >> >> >> "Alain L." a écrit dans le message de >> news:0b3401c38d76$d11ad5c0$ >>> j'ai un petit problème en VB 6.0 >>> pour lire puis modifier un fichier XML >>> formaté avec des attributs. >>> >>> <?xml version='1.0' encoding='utf-8' ?> >>> <jdeRequest pwd='ROBOT' type='ube' user='TOTO' >>> environment='RI7334'> >>> <ACTION TYPE='LAUNCH_JOB'> >>> >>> <REPORT_NAME VALUE='R4981'/> >>> <REPORT_VERSION VALUE='EXPL10001'/> >>> ... >> >> >> .