Guest sydullasyed Posted September 20, 2006 Posted September 20, 2006 In my script i want to load the three xml files using the xmlobject. for that i have written the following code. Const $NumOfRecords = 2 Dim $file[$NumOfRecords] dim $var1 dim $Loop For $Loop=1 to $NumOfRecords Step 1 $file[$Loop]="NewRecord(NS Rec)"& $Loop & ".xml" Next ; Load all the files For $var1=1 to $NumOfRecords step 1 ;--------------------------------------------------------------------- $xmlObj = ObjCreate("Msxml2.FreeThreadedDomDocument") $xmlObj.SetProperty ("ServerHTTPRequest", 0) $xmlObj.async = 0 ;------------------------------------------------------------------ $xmlObj.load( $file[$var1] ) ;------------------------------------------------------------------ $myErr = $xmlObj.parseError If $myErr.errorCode <> 0 Then Msgbox(0,"","Error loading document. Reason: " & $myErr.reason) exit Endif $xmlobj.validateOnParse = 0 $xmlobj.resolveExternals = 0 $xmlobj.setProperty("SelectionLanguage", "XPath") $sysName = "Local" $node = $xmlobj.documentElement ......... ......... ............ Next But it is not working. Can anybody assist me
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now