> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: compileLynxXmlFragment()

> **compileLynxXmlFragment**(`source`: `string`, `options?`: [`CompileLynxXmlFragmentOptions`](/next/api/genui/lynx-xml/interfaces/CompileLynxXmlFragmentOptions.md)): `object`

Compile the model's intermediate document without executing model code.

## Parameters

| Parameter | Type                                                                                                    |
| --------- | ------------------------------------------------------------------------------------------------------- |
| `source`  | `string`                                                                                                |
| `options` | [`CompileLynxXmlFragmentOptions`](/next/api/genui/lynx-xml/interfaces/CompileLynxXmlFragmentOptions.md) |

## Returns

`object`

### text

> **text**: `string`

### xmlFragment

> **xmlFragment**: `string`
