# Xml parser

**URL:** <https://forums.unrealengine.com/t/xml-parser/279448>\
**Category:** Blueprint\
**Tags:** unreal-engine, xml, question\
**Created:** [April 2, 2014, 6:41pm UTC](https://forums.unrealengine.com/t/xml-parser/279448 "2014-04-02T18:41:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Larraz](https://forums.unrealengine.com/u/Larraz)\
**Post date:** [April 2, 2014, 6:41pm UTC](https://forums.unrealengine.com/t/xml-parser/279448/1 "2014-04-02T18:41:17Z")

</div>

Hi i want to know the class that should i use to load a xml file, and the includes too. Should be Xmlfile.h, Fxml,…???

Thanks

---

<div class="post-metadata">

**Author:** ![TomSarkanen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomsarkanen/32/918655_2.png) [@TomSarkanen](https://forums.unrealengine.com/u/TomSarkanen)\
**Post date:** [April 4, 2014, 2:14pm UTC](https://forums.unrealengine.com/t/xml-parser/279448/2 "2014-04-04T14:14:21Z")

</div>

You need to include “XmlParser.h” and your module should depend on “XmlParser” in its Build.cs file.  
You load an XML file using the FXmlFile class, either using its constructor or the LoadFile method (which its constructor wraps).

Bear in mind that this is NOT a generic XML implementation and various features may or may not work. It was built internally to work in specific circumstances (plist loading/saving and SVN command results parsing) so there will be parts of the specification that aren’t implemented or are incorrect.

---

<div class="post-metadata">

**Author:** ![Larraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Larraz](https://forums.unrealengine.com/u/Larraz)\
**Post date:** [April 4, 2014, 2:17pm UTC](https://forums.unrealengine.com/t/xml-parser/279448/3 "2014-04-04T14:17:10Z")

</div>

Thanks, i will try, it just for reading a text from a xmlFile and save it in a FString to draw it in Canvas

---

<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 28, 2014, 6:07am UTC](https://forums.unrealengine.com/t/xml-parser/279448/4 "2014-10-28T06:07:49Z")

</div>

Hi!

I have same question…

I had to insert ‘XmlParser’ in Build.cs file and  
include ‘XmlParser.h’. ( **#include “Runtime/XmlParser/Public/XmlParser.h”** )

Then I wrote :  
_FXmlFile testXml = new FXmlFile();_\*

But it was error!

How can i use xml command?

---

<div class="post-metadata">

**Author:** ![Larraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Larraz](https://forums.unrealengine.com/u/Larraz)\
**Post date:** [October 28, 2014, 8:57pm UTC](https://forums.unrealengine.com/t/xml-parser/279448/5 "2014-10-28T20:57:46Z")

</div>

Include the XmlParser inside the cs file like this

PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “XmlParser” });

Then include the .h file

#include “XmlParser.h”

it should works, if not then write the error

---

<div class="post-metadata">

**Author:** ![rustwd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rustwd](https://forums.unrealengine.com/u/rustwd)\
**Post date:** [May 23, 2016, 12:52pm UTC](https://forums.unrealengine.com/t/xml-parser/279448/6 "2016-05-23T12:52:38Z")

</div>

you have decided this issue?

---

<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/xml-parser/279448/7 "2018-06-05T20:18:18Z")

</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)
