EasyXMLParser

A plugin that allows intuitive access to XML data using dot notation.

Overview

EasyXMLParser is a plugin that streamlines XML processing in Unreal Engine. It adopts the same intuitive dot notation access system as EasyJsonParser, making it easy to access XML elements and attributes.

This plugin is useful in various scenarios involving XML, such as configuration files, data exchange, and integration with external systems.

Key Features

  • Access to XML elements using a simple dot notation
  • Easy retrieval of attribute values
  • Support for complex, nested XML structures
  • Full support for both C++ and Blueprint
  • Fast and efficient parsing

Usage Examples

Retrieving values

We provide the following four functions for retrieving values from XML.

  • ReadInt
  • ReadFloat
  • ReadString
  • ReadBool

Enter the access string in “AccessString” and specify the default value in “DefaultValue”.
If the specified value does not exist in the XML, the default value will be returned.

GALLERY 1

Retrieving objects

There are also “ReadElement” and “ReadElements” methods that allow you to retrieve nodes as objects instead of values.

“ReadElement” retrieves a single target node, while “ReadElements” retrieves an array of multiple nodes.

By using these methods, you can efficiently parse hierarchical XML data.

GALLERY 2


How to load XML

Copilot said: There are two ways to load XML:

There are two ways to load XML: “LoadFromFile” for loading an XML file, and “LoadFromString” for loading an XML string.

Asynchronous versions are also available, which perform parsing in the background.

GALLERY 3

FAQ

You can check frequently asked questions here.