Archive: How to load any XML files ?


How to load any XML files ?
Hello,

i'm try to load and XML file.
I use the function : "nsisXML::load /NOUNLOAD "$EXEDIR\Filename.XML"
but i would like to open any XML file created in the exe directory : "*.xml".
From what i've seen, the command "*.xml" doesn't work ...
Please, can anybody tell me how to process ?

Thanks

Bertrand


nsisXML doesn't probably support wildcard file names. But you can do the same thing with nsis by using FindFirst, FindNext and FindClose.

FindFirst $0 $1 "$EXEDIR\*.xml"
StrCmp $1 "" +2
nsisXML::load /NOUNLOAD "$EXEDIR\$1"
...


thanks so much
I'm going to try it !!
Thanks so much for the reply !!

Bertrand