added API for server-side XML validation
updated