# Preserve spaces and carriage return with FXmlParser

**URL:** <https://forums.unrealengine.com/t/preserve-spaces-and-carriage-return-with-fxmlparser/606577>\
**Category:** C++\
**Tags:** unreal-engine, UE4, CPP, question\
**Created:** [July 16, 2022, 10:51pm UTC](https://forums.unrealengine.com/t/preserve-spaces-and-carriage-return-with-fxmlparser/606577 "2022-07-16T22:51:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Talad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Talad](https://forums.unrealengine.com/u/Talad)\
**Post date:** [July 16, 2022, 10:51pm UTC](https://forums.unrealengine.com/t/preserve-spaces-and-carriage-return-with-fxmlparser/606577/1 "2022-07-16T22:51:53Z")

</div>

Hi, I have a problem with FXmlParser, it seems its not preserving spaces or carriage returns. The code just tokenize everything, including text values. So if you have an xml like this:

```auto
<branch>With this command
            Usage:
            /allianceinvite [guild-leader]
</branch>

```

the spaces after “this” will disappear, and you will have all text in one line.  
The result after the parser will be: “With this command Usage: /allianceinvite [guild-leader]”

Xml specification says spaces can be preserved and carriage returns as well.
