---
title: "xml:parse — Parse XML"
description: "iXML command xml:parse: Parse XML."
canonical_url: "https://www.zeyos.com/ixml/ref/xml-parse"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/xml-parse.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# xml:parse — Parse XML

XML:PARSE parses a XML document.

XML:PARSE returns the root element as an array comprised of the following items:

				Key   Description
				---------------------------------------------------------------------------
				name  tag name (upper case)
				attr  array of attributes with associated name (upper case) and value pairs
				nodes array of child nodes including cdata parts
				child array of child elements
				elems array of child elements grouped by tag name (upper case)
				cdata concatenated cdata value

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |
| preservecase | bool |  | Preserve case |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: array; predicate: no-result-propagation
