Validation using libxml