此代码仍然有效或太旧吗? XML字段规则值验证

时间:2013-08-13 19:25:00

标签: xml xsd

基本上,我想要一个值验证,其中有一个字段有一个数字,Field1 =#然后Field2需要具有相同的#(并且如果没有则给出一点红色错误)。

我看到以下内容:

    <fieldRules xmlns="http://urlthatdoesn'texist" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <valueValidation><booleanRules><booleanRule type="Error">

    <expression type="WinWrap">Csng("0" &amp; "%Amount%") &lt;&gt; Csng("0" &amp; "%Amount%") 
</expression>

<message>Field1=Field2</message>
</booleanRule>
</booleanRules>
</valueValidation>
</fieldRules>

问题是,我正在试图弄清楚这段代码中需要什么,什么不是,谷歌并没有真正指向我正确的方向。我需要xmlns网址吗?

0 个答案:

没有答案
相关问题