Results 1 to 6 of 6
Thread: XML Validation
- 03-16-2011, 04:57 PM #1
XML Validation
I am trying to validate the data passed into a form, by using an xml validator, I have:
Java Code:<field property="box1.entered" depends="validwhen"> <msg name="validwhen" key="error.25"/> <var> <var-name>test</var-name> <var-value> textBox2.value.length !=6 </var-value> </var> </field>
How can I reference the length of the text that is inside the textbox2 in this XML?
- 03-17-2011, 08:38 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 28
That entirely depends on the system that this XML is designed to work with. That is, we have no idea what this XML represents or what framework it is for or anything.
Have you read the documentation for whatever validation thing you;re using?
- 03-19-2011, 02:16 AM #3
Your snippet is well-formed XML.
Validation, and the tokens that are expected depend on a DTD or schema which you're not showing, imho.
- 03-21-2011, 09:33 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 28
That's not what the OP is asking about.
This XML is for some form validation system they are using.
That is, it defines how to validate an HTML form when received by the server.
Exactly how this validation system works, of course, we have no idea.
- 03-21-2011, 12:12 PM #5
@Tolls. You're probably right.
Could the capital B in "textBox2" be a problem?
- 03-21-2011, 12:38 PM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 28
Similar Threads
-
Email Validation
By juhiswt in forum New To JavaReplies: 5Last Post: 03-08-2011, 03:15 PM -
partial XML validation against xsd
By presto in forum XMLReplies: 2Last Post: 11-21-2009, 05:15 PM -
VAlidation
By chetna1982 in forum New To JavaReplies: 2Last Post: 12-11-2008, 07:08 AM -
Help in adding some validation..
By tornado in forum New To JavaReplies: 5Last Post: 11-30-2008, 01:36 AM
Bookmarks