added example to show XML based validation