How can i load xml file within c++?

Hi!

I want to load xml data file.

I found ‘XmlParser’. But i can’t use it.

I want to know how can i use ‘XmlParser’.

1 Like

Hi,

Firstly you should connect xmlparser module, for this just add “XmlParser” to dependency module names in your project.Build.cs. Then include “XmlParser.h” to project.
Example of using:

FXmlFile file(L"E://test.xml");
auto pRoot = file.GetRootNode();

Best regards,

There’s a plugin which fully support XML read/write and table mapping, it can be used in both blueprints and c++. Tiny Xml Integration in Code Plugins - UE Marketplace