---
description: "Learn more about: Xml.Document"
title: "Xml.Document"
---
# Xml.Document

## Syntax

<pre>
Xml.Document(<b>contents</b> as any, optional <b>encoding</b> as nullable number) as table
</pre>

## About

Returns the contents of the XML document as a hierarchical table.
