# Extract text structure This article explains that how to extract text structure from documents. GroupDocs.Parser provides the functionality to extract the text structure from documents by the GetStructure method: ```java XmlReader GetStructure(); ``` This method returns XML representation of a document. A document has the following structure:  | Tag | Description | | --- | --- | | document | The root tag | | section | Represents a section of the document. Depending on the document type, it can represent a worksheet, a slide and so on. Can contain the following attributes:
Lorem ipsum dolor sit amet,
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed
Vivamus a tellus.
|
In porttitor. |
Donec laoreet nonummy augue. |
Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. |
Mauris eget neque at sem venenatis eleifend. |
|
Ut nonummy. |
Fusce |
Suspendisse dapibus lorem pellentesque magna. |
Integer nulla. |
|
Donec blandit feugiat ligula. |
Donec hendrerit, felis et imperdiet euismod, purus ipsum pretium metus, in lacinia nulla nisl eget sapien. |
Donec ut est in lectus consequat consequat. |
Etiam eget dui. Aliquam erat volutpat. |
Sed at lorem in nunc porta tristique. Proin nec augue.