# Extract text structure Extract the text structure of a document as an XML document and process it with GroupDocs.Parser for Node.js via Java. GroupDocs.Parser provides the functionality to extract the text structure from documents by the `getStructure` method: ```javascript parser.getStructure(); // returns an org.w3c.dom.Document object or null ``` This method returns the XML representation of a document as a Java `org.w3c.dom.Document` object. You work with it through the standard Java DOM methods (`getDocumentElement()`, `getChildNodes()`, `getNodeName()`, `getAttributes()` and so on). 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.