Data Validation for Hierarchical Data