---
updatedAt: 2026-02-12T14:06:00.000Z
agentTools:
  projectIndex: https://transport-freight-management.docs.developers.aeb.com/llms.txt
---

# parseDocumentTemplateContent

<h3>Parse document</h3><p>Parses the referenced template data and returns the required information, as specified in the parse query parameters. The supported query parameters are individual to each document processor. The referenced template must already exist in the system.</p>

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Document Service HTTP API",
    "description": "Thank you for using our HTTP API documentation.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://rz3.aeb.de/demo1docs/rest"
    }
  ],
  "security": [
    {
      "SWAGGER_AUTH_KEY": []
    },
    {
      "BASIC_AUTH": []
    }
  ],
  "tags": [
    {
      "name": "DocumentService",
      "description": "REST API for the Document Service"
    }
  ],
  "paths": {
    "/DocumentService/template/{fileName}/parse": {
      "get": {
        "tags": [
          "DocumentService"
        ],
        "summary": "parseDocumentTemplateContent",
        "description": "<h3>Parse document</h3><p>Parses the referenced template data and returns the required information, as specified in the parse query parameters. The supported query parameters are individual to each document processor. The referenced template must already exist in the system.</p>",
        "operationId": "parseDocumentTemplateContent",
        "parameters": [
          {
            "name": "fileName",
            "in": "path",
            "description": "Relative file name of the document template in file system (without path). This name, together with the version, uniquely identifies a template resource.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "DemoDoc10.pdf"
          },
          {
            "name": "processor",
            "in": "query",
            "description": "Document processor tag. It decides, which processor takes care of the document.",
            "schema": {
              "type": "string"
            },
            "example": "PDF-XFA"
          },
          {
            "name": "query",
            "in": "query",
            "description": "Parse query. Defines, which part of the template is to be returned.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "xmls": {
                "summary": "List of predefined XML examples",
                "description": "Return the predefined example XMLs of a document template (plain list of UTF8 strings, one page name per line). Each line, including the last one, is delimited by the system line separator. These example XMLs are resources of a bundle and must be manually added. To return a specific example XML from that list the XML can be extended by a '?' and the name of the XML: <code>query=\"XML?some-known-example.xml\"</code> <br><br>To determine a generic empty example XML the parse commandXML can be used.",
                "value": "XMLs"
              },
              "xml": {
                "summary": "Empty document data example (XML format)",
                "description": "Empty XML document data, generated from the document data schema",
                "value": "XML"
              },
              "xsd": {
                "summary": "Schema in XSD format",
                "description": "Return the data schema definition (XSD format http://www.w3.org/2001/XMLSchema).",
                "value": "XSD"
              },
              "pageNames": {
                "summary": "Template page names",
                "description": "Return the template page names (plain list of UTF8 strings, one page name per line). Each line, including the last one, is delimited by the system line separator.",
                "value": "PageNames"
              },
              "textPlaceholders": {
                "summary": "List of template placeholders",
                "description": "Return the template text placeholders (plain list of UTF8 string, one placeholder name per line). Each line, including the last one, is delimited by the system line separator.",
                "value": "TextPlaceholders"
              },
              "xml_example": {
                "summary": "A predefined XML example",
                "description": "Return XML example 'DemoDoc10.example.xml'. See query=XMLs to get a list of all predefined examples.",
                "value": "XML?DemoDoc10.example.xml"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The data was found and the required content has been sent in the response"
          },
          "400": {
            "description": "Document template doesn't have the requested external tag"
          },
          "404": {
            "description": "Document template was not found"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "SWAGGER_AUTH_KEY": {
        "type": "apiKey",
        "name": "X-XNSG_WEB_TOKEN",
        "in": "header"
      },
      "BASIC_AUTH": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-proxy-enabled": false,
  "x-readme": {
    "explorer-enabled": true
  }
}
```