--- title: "XML export" slug: "core-xml-export-content-builder" updated: 2026-04-15T11:43:52Z published: 2026-04-15T11:43:52Z canonical: "docs.lobstersoftware.com/core-xml-export-content-builder" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # XML export *See also:* [Object to server xml](/v1/docs/en/core-server-xml-encode-resolver) (Value resolver), [Export](/v1/docs/en/core-export-actor) (Event action) > [!NOTE] > Value resolver – Abstract > > **Purpose:** Returns the content of an XML export for the *reference object* as text (string). > > > [!TIP] > > Tooltip > > > > - **Usage**: The object whose XML export string is to be created must exist as a *reference object* in the context of the value explorer. The *input value* is ignored. > > - **NOTE:** The [XML export](/v1/docs/en/core-xml-export-content-builder) value resolver returns exactly the XML structure that an [Export](/v1/docs/en/core-export-actor) event action with the same *reference object* passes to the called profile. The XML structure basically corresponds to the "Server XML" mapping for the data type of the *reference object*, although in rare cases certain details are handled specifically by the `ExportManager` (e.g. added or suppressed). ![images/download/attachments/91131544/image2023-1-27_12-48-27-version-1-modificationdate-1674820107721-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-27_12-48-27-version-1-modificationdate-1674820107721-api-v2.png) The [XML export](/v1/docs/en/core-xml-export-content-builder) value resolver returns the content of an XML export for the *reference object* as text (string). The *input value* is ignored. - For a single entity as *input value* the output text corresponds exactly to the content that the ribbon command "Show Export/XML" (see [Available commands](/v1/docs/en/ribbon-commands)) outputs in a new browser tab. - The return value is mostly (often exactly) the same as the return value of an [Object to server xml](/v1/docs/en/core-server-xml-encode-resolver) value resolver that is passed the *reference object* as an *input value*. **NOTE:** The [XML export](/v1/docs/en/core-xml-export-content-builder) value resolver is not available in a [Client Workflow](/v1/docs/en/frebehav-client-workflow). > [!NOTE] > Differences between XML export and "Server XML" > > --- > > Differences in content between the return value of the [XML export](/v1/docs/en/core-xml-export-content-builder) value resolver and a "Server XML" for the same *reference object* (see [Object to server xml](/v1/docs/en/core-server-xml-encode-resolver)) are due to the special processing by the `ExportManager`, from which *only* the [XML export](/v1/docs/en/core-xml-export-content-builder) value resolver obtains its return value. > > - The [XML export](/v1/docs/en/core-xml-export-content-builder) value resolver returns exactly the XML structure that an [Export](/v1/docs/en/core-export-actor) event action with the same *reference object* passes to the called profile. > - The [Object to server xml](/v1/docs/en/core-server-xml-encode-resolver) value resolver returns the XML structure that a [Profile call](/v1/docs/en/core-call-profile-content-builder) value resolver with the same *input value* or a [Call profile](/v1/docs/en/frebehav-call-profile) event action with the *input value* passes as a *reference object* to the called profile. > > Example: For [Documents](/v1/docs/en/doc-document), the "Server XML" does not include the file content (`documentContent`), as this can be very extensive. When an [XML export](/v1/docs/en/core-xml-export-content-builder) is performed, the `ExportManager` includes the corresponding "Content" object in the XML. ## Configuration The [XML export](/v1/docs/en/core-xml-export-content-builder) value resolver processes the *reference object* and ignores the *input value*. The configuration does not use any parameters. ## Example An event handler shall display the XML "raw data" of all address contacts stored in the address of the [Company of session](/v1/docs/en/base-session-company-account-value) that belong to the [Contact type](/v1/docs/en/base-contact-type) "Employee" (`EMPLOYEE`) via [Show alert](/v1/docs/en/freaction-show-alert) event action. With this function, authorized users should be able to view the data entered into the company account via an interface without having to map all address characteristics in the input form for [Companies/Clients](/v1/docs/en/base-company-account). Configuration: | In an event handler, a [For each loop](/v1/docs/en/core-for-each-entity-actor) event action is parameterized as shown on the right: - In the **Resolver for entities** parameter, the list of contact addresses of all "employees" of the registered company is obtained by the following value resolver chain: - The [Company of session](/v1/docs/en/base-session-company-account-value) value resolver determines the company account used for login. - The [Object property](/v1/docs/en/core-property-resolver) value resolver returns the "Address" of the (`address`) of the company. - A [Plural typed attribute resolver](/v1/docs/en/core-typed-attributes-resolver) returns all instances of the "Address contact" attribute with the **Subtype "**Employee" (`EMPLOYEE`). - Our evaluation concerns the "Address" (`Address`) stored per employee in the `contactAddress` field of the "Address contact" attributes. The [Collect values](/v1/docs/en/core-collect-resolver) resolver extracts these addresses as a list from the list of all "Employee" address contacts. - In the *action block* of the loop, there is an "Address" as a *reference object* for each iteration, which is processed in a [Show alert](/v1/docs/en/freaction-show-alert) event action as follows: - The **Title** for the notification of the "Alert" **Type** is formatted by [Template](/v1/docs/en/core-template-content-builder) value resolver starting from the r*eference object* ("Address") in such a way that the localization for the [Contact type](/v1/docs/en/base-contact-type) "Employee" appears followed by all "Name" fields from the address. - In the **Message**, the [XML export](/v1/docs/en/core-xml-export-content-builder) value resolver returns the "Server XML" structure of the "Employee" address to be displayed. The concatenated [Replace text](/v1/docs/en/core-replace-string-resolver) value resolver replaces all spaces in the "Server XML" with character breaks here using the **Regular** **expression?** function to achieve a more compact and clear format of the structure in the *popup* (see runtime example below). **NOTE:** Simple formatting by replacing the spaces with line breaks should be avoided if the text features of the address itself may contain spaces. Here we assume that for address contacts the name fields are filled where no blanks are to be expected. | ![images/download/attachments/91131544/image2023-1-27_12-44-32-version-1-modificationdate-1674819872807-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-27_12-44-32-version-1-modificationdate-1674819872807-api-v2.png)![images/download/attachments/91131544/image2023-1-27_12-45-14-version-1-modificationdate-1674819914604-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-27_12-45-14-version-1-modificationdate-1674819914604-api-v2.png) | | --- | --- | Runtime example: *Message with address data for an employee "Jane Doe-Average"*. ![images/download/attachments/91131544/image2023-1-27_12-42-13-version-1-modificationdate-1674819733356-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-27_12-42-13-version-1-modificationdate-1674819733356-api-v2.png) - The XML export shows all filled fields of the contact address stored in the company account, regardless of whether they are displayed in the data input form for the company account. - Specifically, the e-mail address stored in the "Match code" field (`accMatchCode`) could be of interest here (see selection in screenshot), which can be copied from the displayed "Alert" to the clipboard, for example.