private void PreprocessAnnotation(XmlSchemaObject schemaObject) {
if (schemaObject is XmlSchemaAnnotated) {
XmlSchemaAnnotated annotated = schemaObject as XmlSchemaAnnotated;
if (annotated.Annotation != null) {
annotated.Annotation.Parent = schemaObject;
foreach (XmlSchemaObject obj in annotated.Annotation.Items) {
obj.Parent = annotated.Annotation; //Can be documentation or appInfo
}
}
}
}