Skip to Main Content
We address why, and especially how, to represent field-oriented XML-based rule file in form validation for Web applications. Motivated by the decades-old problem of frequently changing requirements for software development, we propose a descriptive solution to validation on Web form data. By extracting all database-isolated rules, which are to be implemented on both client-side and server-side, into standalone rule file in a field-oriented format, management of business rules on either side can be simplified to a great extent. The main advantage of our approach is a consistency guarantee of validation logic performed by presentation and application layer, as well as prominent clarity in representation and notable flexibility in modification. It's a tailored replacement for traditional realization of hard-code, which results in redundant work, tight coupling structure, and highly possible inconformity of rules between both sides.