Share this page

# lr.read_xml

Returns the contents of an XML file as a string.

Your cannot use standard parameterization with this function.

    String.lr.read_xml( String file_name);

String and Parameter Functions

## Arguments

Name | Comments
--- | ---
file_name | The file to read and return as a string. The file must exist in the `data\SerializedObjects` directory under the script directory.

The lr.read_xml function returns the contents of the specified file as a String. If the call fails, it returns null.

## Example

In the following example the lr.read_xml function gets the contents of the `my_obj.xml` file.

    String xmlStr = lr.read_xml("my_obj.xml");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: