# How can i load xml file within c++?

**URL:** <https://forums.unrealengine.com/t/how-can-i-load-xml-file-within-c/297357>\
**Category:** Blueprint\
**Tags:** unreal-engine, xml, question\
**Created:** [October 27, 2014, 5:05am UTC](https://forums.unrealengine.com/t/how-can-i-load-xml-file-within-c/297357 "2014-10-27T05:05:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user\_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd](https://forums.unrealengine.com/u/user_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd)\
**Post date:** [October 27, 2014, 5:05am UTC](https://forums.unrealengine.com/t/how-can-i-load-xml-file-within-c/297357/1 "2014-10-27T05:05:11Z")

</div>

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’.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_957a4452](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_957a4452](https://forums.unrealengine.com/u/anonymous_user_957a4452)\
**Post date:** [November 4, 2014, 8:40am UTC](https://forums.unrealengine.com/t/how-can-i-load-xml-file-within-c/297357/2 "2014-11-04T08:40:33Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![luochuanyuewu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luochuanyuewu/32/1156014_2.png) [@luochuanyuewu](https://forums.unrealengine.com/u/luochuanyuewu)\
**Post date:** [June 5, 2018, 8:18pm UTC](https://forums.unrealengine.com/t/how-can-i-load-xml-file-within-c/297357/3 "2018-06-05T20:18:39Z")

</div>

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](https://www.unrealengine.com/marketplace/tiny-xml-integration)
