Home

Awesome

EasyXMLParser

EasyXMLParser is an XML parser for Unreal Engine.

You can get the value by using a simple access string.

To get a text node, create an access string for the value you want to get.

Access strings are created by connecting tag names with dots.

If there are multiple nodes with the same tag name, you can specify an index number starting from 0 (eg [2]-> third). If you do not specify the index, the first element will be acquired.

GALLERY 4

The access string for acquiring the attribute is specified by (at mark + attribute name).

GALLERY5

Get value

Acquisition of the value from XML prepares the following 4 functions.

Enter the access string in "AccessString".

Specify the default value for "DefaultValue".

If the specified value does not exist in the XML, a default value is returned.

GALLERY 1

Get object

There are also "ReadElement" and "ReadElements" methods that get nodes as objects rather than as values.

ReadElement gets one targeted node.

ReadElements gets an array of multiple nodes.

GALLERY 2

XML parsing method

There are two methods to load XML: "LoadFromFile" to load an XML file and "LoadFromString" to load an XML string.

There is also an asynchronous version that performs parsing in the background.

GALLERY 3