---
title: "Object to server xml"
slug: "core-server-xml-encode-resolver"
updated: 2026-04-15T13:29:32Z
published: 2026-04-15T13:29:32Z
canonical: "docs.lobstersoftware.com/core-server-xml-encode-resolver"
---
> ## 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.
# Object to server xml
*See also:* [Server xml to object](/v1/docs/en/core-server-xml-decode-resolver)
> [!NOTE]
> Value resolver – Abstract
>
> **Purpose:** Returns the data structure of the *input value* as text in server XML format.
>
> > [!TIP]
> > Tooltip
> >
> > - **Usage**: The value resolver returns the data structure of the *input value* as text in server XML format.
> > - **NOTE:** If no object is present as input value, the XML structure for "No value" (the `nil` object) is returned as text.

The [Object to server xml](/v1/docs/en/core-server-xml-encode-resolver) value resolver returns the data structure of the *input value* as text in server XML format (see [Server data encoder](/v1/docs/en/core-server-encoder)).
## Configuration
The value resolver does not use any parameters.
An object is expected as *input value*.
**NOTE:** If no object is present as an *input value*, the following text is output as a return value (`$null`):
```xml
```
## Examples
| Input value | Configuration example | Return value (string) |
| --- | --- | --- |
| Text (for the server any object with `string` value) |  | ```xml HELLO WORLD! ``` |
| Date/Time (`DateTime` object) |  | ```xml ``` |
| Heterogeneous list of values (one `list` object with a possibly different type per `entry`) |  | ```xml 4711 0815
``` |
| Company account (as an example of an entity) |  | ```xml CNE INV FWD DPA AAL 702 ... ``` |