# Import annotations This page describes how to import annotation from the XML files using GroupDocs.Annotation for .NET API. GroupDocs.Annotation v22.1 and later allows you to import annotations from the XML files. The following code snippet shows how to import annotations from an XML file: {{< tabs "example1">}} {{< tab "C#" >}} ```csharp using (Annotator annotator = new Annotator("input.pdf-file")) // specify the path to the file with the annotated { annotator.ImportAnnotationsFromDocument("result.XML-file"); // specify the path to the result XML file } ``` {{< /tab >}} {{< /tabs >}}