Calling VBScript function from XML File

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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.
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small ValidationGroup<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small enable<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small true<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small tab<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small Pricing
Info<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small processCondition<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small count(/Loanfile/ExceptionRequest/LienCol/Lien/PricingCol/@*)
> 0<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small tabId<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small PricingInfo<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small validationGroupId<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small Pricing<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small stopOnError<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small N<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small ><span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<
<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small Context<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small ><span style="font-size:small <span style="font-size:small /Loanfile/ExceptionRequest/LienCol/Lien/PricingCol<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small </<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small Context<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small ><a>

<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <Validation<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small enable<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small true<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small severity<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small Error<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small validationId<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small PointsTotal.inEighths<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small condition<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small (@pointsTotal
!= and (VBScript:DateDiff(d,1/1/2012,3/3/2013) <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small &gt;<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
0)))<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small assertion<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small (((@pointsTotal)*1000)
mod 125) = 0<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
<span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small <span style="color:#ff0000; font-size:small message<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small =<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small Points
Total must be in increments of eigths (.125)<span style="font-size:small <span style="font-size:small "<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small /><span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
</
<a> <a> <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small ValidationGroup<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small ><a> <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
Thanks,
Deepali

<a>


View the full article
 
Back
Top