private void PreprocessAnnotation(XmlSchemaAnnotation annotation) { ValidateIdAttribute(annotation); foreach (XmlSchemaObject obj in annotation.Items) { obj.Parent = annotation; //Can be documentation or appInfo } } };