Reading values from *.xml file - 02/01/08 02:41 PM
I have an *.xml (RushSite.xml) file here and i would like to retrieve specific values from it, site names to be more precise but after a lot of reading and searching i'm unable to read complete content of it.
My first attempt was this:
*Trying to get atleast some values from the file
Then i tried to add a while loop in it but i'm stuck in getting results back of it in active window.
What i want to accomplish is to add those names in a hash table but before i go there i first wanna make this work.
My first attempt was this:
Code:
//echo $read(C:\FTPRush\RushSite.xml, w, *SITE NAME=*)
Then i tried to add a while loop in it but i'm stuck in getting results back of it in active window.
Code:
alias Names { while ($exists(%FTPRushDir $+ RushSite.xml) == $false) { set %FTPRushDir $sdir(c:\,Select your FTPRush's folder) } var %nr = 1, %matches while ($read(%FTPRushDir $+ RushSite.xml, w, *SITE NAME*, %nr)) { var %matches = %matches $readn var %nr = $calc($readn +1) } }