Bertrand_M23
4th September 2006 09:05 UTC
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
{_trueparuex^}
4th September 2006 10:39 UTC
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"
...
Bertrand_M23
4th September 2006 11:11 UTC
thanks so much
I'm going to try it !!
Thanks so much for the reply !!
Bertrand