> For the complete documentation index, see [llms.txt](https://vostok.gitbook.io/configuration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vostok.gitbook.io/configuration/sources/xml-sources.md).

# XML sources

**Location**: [Sources.Xml module](/configuration/modules/sources.xml.md).

[**XmlStringSource**](https://github.com/vostok/configuration.sources.xml/blob/master/Vostok.Configuration.Sources.Xml/XmlStringSource.cs) parses well-formed XML documents from in-memory strings and supports manual external updates:

```
var source = new XmlStringSource("<xml content>")

source.Push("<xml content>") // update with new content
```

[**XmlFileSource**](https://github.com/vostok/configuration.sources.xml/blob/master/Vostok.Configuration.Sources.Xml/XmlFileSource.cs) parses XML files and automatically watches for changes:

```
var source = new XmlFileSource("settings/config.xml");
```

A file that does not exist simply leads to a `null` [node](/configuration/concepts-and-basics/settings-nodes.md), which implies default settings values unless something is [explicitly required](/configuration/basic-scenarios/make-settings-required.md).

### Related pages

{% content-ref url="/pages/-M6UQMklC2EtQ\_nAUDjI" %}
[Configuration sources](/configuration/concepts-and-basics/configuration-sources.md)
{% endcontent-ref %}
