I am wondering if there is a way to Validate and Correct things in an XML Document based on the Schema? Specifically I am looking to fix fields that have exceeded the maximum length. I have seen how to go about and given a field check to see if that field is within the limit (SchemaType.getFacet(...)) but I am looking for a way to walk through an XML Document programmaticaly and check all fields to make sure they adhere length wise to the schema. Thanks in advance.

