# parse_xml

The `parse_xml` method parses an XML string to a LuaXmlDocument.

NOTE: The following character encodings are supported. If the XML uses a different character encoding, you can use the function convert_encoding to convert the encoding before parsing the XML.

- UTF-8
- UTF-16
- ISO-Latin-1 (ISO-8859-1)
- ASCII

## Syntax

    parse_xml( xml )

## Arguments

Argument | Description
--- | ---
`xml` | (string) XML data as a string.

## Returns

(LuaXmlDocument). A LuaXmlDocument containing the parsed data, or nil if the string could not be parsed.

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm