# 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: ![](https://docs.groupdocs.com/parser/java/images/extract-text-structure.png) | 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: | | p | Represents a text paragraph. Can contain the following attribute: