Validate an XML document in a flowscript

2004-06-16 Thread Vilya Harvey
Hi all, I'm using CForms and the binding framework to edit an XML document. That's working great. What I'd like to do is validate the document against an XML Schema after it's been updated with the values from the form. How can I achieve this? The flowscript which controls the form at the

Re: Validate an XML document in a flowscript

2004-06-16 Thread Simon Hutchinson
Vilya Harvey wrote: What I'd like to be able to do is insert some code after the form.save(...) line which validates the form, and loops back to the form.load(...) line if validation fails. Any suggestions? Sounds like a simple while loop might do the trick. var isValid = false; function

Re: Validate an XML document in a flowscript

2004-06-16 Thread Vilya Harvey
Hi, Simon Hutchinson wrote: Vilya Harvey wrote: What I'd like to be able to do is insert some code after the form.save(...) line which validates the form, and loops back to the form.load(...) line if validation fails. Any suggestions? Sounds like a simple while loop might do the trick. I'm

Re: Validate an XML document in a flowscript

2004-06-16 Thread Vilya Harvey
Vilya Harvey wrote: I'm sorry I didn't make it clear, but it's actually the code to perform the validation that I'm looking for. I have no problem writing loops in JavaScript! Thanks for the reply anyway, Should have mentioned, but this is what I've tried so far: == function