Calling VBScript function from XML File
-
Thursday, January 24, 2013 7:12 AM
Hi,
I have one xml file as given below where i specified all the validations. Calling this code from the .Net using the Xpath. The problem is i have to call the VBScript function DateDiff to compare 2 Dates. Please see the below given code. When i run my .Net application i am getting the Invalid token error for the VBScript code. Need help on how to call the VBScript function in XMl File.
<ValidationGroup enable="true" tab="Pricing Info" processCondition="count(/Loanfile/ExceptionRequest/LienCol/Lien/PricingCol/@*) > 0" tabId="PricingInfo" validationGroupId="Pricing" stopOnError="N">
<
Context>/Loanfile/ExceptionRequest/LienCol/Lien/PricingCol</Context><Validation enable="true" severity="Error" validationId="PointsTotal.inEighths" condition="(@pointsTotal != '' and (VBScript:DateDiff('d','1/1/2012','3/3/2013') > 0)))" assertion="(((@pointsTotal)*1000) mod 125) = 0" message="Points Total must be in increments of eigths (.125)"/>
</
ValidationGroup>Thanks,
Deepali
All Replies
-
Friday, January 25, 2013 9:31 AMModerator
Hi Deepali,
Welcome to the MSDN forum.
I am trying to involve a senior expert into your thread. Please wait for the response. Sorry for any inconvenience.
Have a nice day.
Alexander Sun [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Tuesday, February 05, 2013 8:50 PM
Hi Deepali,
Can you please post the .net code using which you call the VBScript function? This would really help us understand how you are trying to implement this.
Thanks,
Kunal (MSFT)

