# uparlayan/fluentxml architecture

> Architecture diagram of the GitHub repository uparlayan/fluentxml, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/uparlayan/fluentxml
- Repository: https://github.com/uparlayan/fluentxml

## Overview

FluentXML is a small Delphi library for constructing XML through a fluent API. The principal workflow is a caller creating and chaining a TFluentXML builder, then formatting or saving the resulting XML. The README also documents TDataSet conversion and a palette-component proxy. No source excerpts were provided, so relationships below rely only on README examples and descriptions; implementation details beyond the single source unit are not inferred.

Main entry points: [`Src/FluentXML_.pas`](https://github.com/uparlayan/fluentxml/blob/master/Src/FluentXML_.pas) (Fluent XML builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Application caller"))
node_dataset[("TDataSet input")]
node_builder["Fluent XML builder<br/>[FluentXML_.pas]"]
node_proxy["Palette proxy<br/>[FluentXML_.pas]"]
node_xml["XML output"]

node_caller -->|"chains calls"| node_builder
node_dataset -->|"converts rows"| node_builder
node_caller -->|"uses component"| node_proxy
node_proxy -->|"exposes Xml"| node_builder
node_builder -->|"formats XML"| node_xml
node_builder -->|"saves file"| node_xml

click node_builder "https://github.com/uparlayan/fluentxml/blob/master/Src/FluentXML_.pas"
click node_proxy "https://github.com/uparlayan/fluentxml/blob/master/Src/FluentXML_.pas"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_caller,node_xml toneIndigo
class node_dataset toneAmber
class node_builder,node_proxy toneTeal
```

## Components

### Other components

- **Application caller**
- **TDataSet input**
- [Fluent XML builder](https://github.com/uparlayan/fluentxml/blob/master/Src/FluentXML_.pas): `Src/FluentXML_.pas`
- [Palette proxy](https://github.com/uparlayan/fluentxml/blob/master/Src/FluentXML_.pas): `Src/FluentXML_.pas`
- **XML output**

## Connections

- Application caller → Fluent XML builder: chains calls (evidence: `README.md`)
- TDataSet input → Fluent XML builder: converts rows (evidence: `README.md`)
- Application caller → Palette proxy: uses component (evidence: `README.md`)
- Palette proxy → Fluent XML builder: exposes Xml (evidence: `README.md`)
- Fluent XML builder → XML output: formats XML (evidence: `README.md`)
- Fluent XML builder → XML output: saves file (evidence: `README.md`)
