EasyXMLParser
Today, I submitted a plugin named EasyXMLParser to the Unreal Engine Marketplace.
This is my second work, following the previously released ObjectDeliverer.
Last time I listed it for free, but this time I have set a price. I focused on ease of use when creating it, so please consider it if you like.
A sample using this plugin is available on GitHub.
Feature Introduction
Introducing the features of EasyXMLParser.
Getting Text
To get a text node, create an access string for the value you want to retrieve.
The access string is 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 (e.g., [2] -> 3rd).
If no index is specified, the first element is retrieved.

The access string for getting attributes is specified with (at mark + attribute name).

Getting Values by Specifying Type
The following four functions are provided for getting values from XML.
- ReadInt(int)
- ReadFloat(float)
- ReadString(string)
- ReadBool(bool)
Enter the access string in “AccessString”.
Enter the default value in “DefaultValue”. If the specified value does not exist in the XML, the default value is returned.

Getting Objects
There are also “ReadElement” and “ReadElements” methods to get nodes as objects rather than values.
ReadElement gets a single node.
ReadElements gets an array of multiple nodes.

XML Parsing Method
There are two ways to load XML: “LoadFromFile” for loading XML files, and “LoadFromString” for loading XML strings.
There is also an asynchronous version that performs parsing in the background.

After XML
Personally, I occasionally have the opportunity to parse XML, so I decided to make it into a plugin this time.
However, I feel that JSON is used more often than XML nowadays.
Therefore, I plan to release a JSON parser as the next plugin.
It is designed with the same usability as this EasyXMLParser and is currently under review by the Marketplace.