I am trying to validate the data passed into a form, by using an xml validator, I have:
I keep getting 'unexpected Token: textbox2.value.length'
<field property="box1.entered" depends="validwhen">
<msg name="validwhen" key="error.25"/>
How can I reference the length of the text that is inside the textbox2 in this XML?
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?
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.
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.
@Tolls. You're probably right.
Could the capital B in "textBox2" be a problem?
But as I said, we do not know what this system does.
We do not know how it works.
We only have a small bit of XML that is, in itseld, meaningless to us.