Old 4th September 2006, 08:05   #1
Bertrand_M23
Junior Member
 
Join Date: Sep 2006
Posts: 12
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
Bertrand_M23 is offline   Reply With Quote
Old 4th September 2006, 09:39   #2
{_trueparuex^}
Senior Member
 
{_trueparuex^}'s Avatar
 
Join Date: Dec 2005
Location: Glow
Posts: 285
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"
...
{_trueparuex^} is offline   Reply With Quote
Old 4th September 2006, 10:11   #3
Bertrand_M23
Junior Member
 
Join Date: Sep 2006
Posts: 12
thanks so much

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

Bertrand
Bertrand_M23 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump