# Merge html files issue using Rebot

**URL:** <https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890>\
**Category:** Robot Framework\
**Created:** [7 October 2024 15:17 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890 "2024-10-07T15:17:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rramalho](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rramalho](https://forum.robotframework.org/u/rramalho)\
**Post date:** [7 October 2024 15:17 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/1 "2024-10-07T15:17:15Z")

</div>

Hi guys, I’m trying to merge the results from 2 xml output files (rebot --merge lst\_output\_01.xml lst\_output\_02.xml) but I get the follow issue:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/4/4d5d74ee9af3b0cb76d15c79f543d7bc048ab899.png)

Any idea how can I fix this?

---

<div class="post-metadata">

**Author:** ![rramalho](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rramalho](https://forum.robotframework.org/u/rramalho)\
**Post date:** [7 October 2024 15:26 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/2 "2024-10-07T15:26:24Z")

</div>

With other xml files I also getting the follow issue:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/b/bae4944a3ff919d8aa47da3ddeb8e23cd2618903.png)

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [7 October 2024 16:11 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/3 "2024-10-07T16:11:43Z")

</div>

Probably different versions of `rebot`?

Try:

```python
python -m robot.rebot --merge lst_output_01.xml lst_output_02.xml

```

---

<div class="post-metadata">

**Author:** ![rramalho](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rramalho](https://forum.robotframework.org/u/rramalho)\
**Post date:** [7 October 2024 16:32 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/4 "2024-10-07T16:32:37Z")

</div>

Not the case, I try your command but no success. Thanks

---

<div class="post-metadata">

**Author:** ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)\
**Post date:** [7 October 2024 18:26 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/5 "2024-10-07T18:26:48Z")

</div>

Hi,

Does a simple file rebot (with for example just another output.xml file) works?

```
rebot --output test.xml your file.xml

```

And what is the RF version, and rebot as well?

Regards  
Charlie

---

<div class="post-metadata">

**Author:** ![rramalho](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rramalho](https://forum.robotframework.org/u/rramalho)\
**Post date:** [8 October 2024 07:54 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/6 "2024-10-08T07:54:07Z")

</div>

Hi Charlie  
Your command not work, same error…  
Seams that the issue is related with the xml file.  
The RF version is 6.0.1 and I’m using Rebot from the RF version installed.  
Thanks

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [8 October 2024 10:12 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/7 "2024-10-08T10:12:56Z")

</div>

output.xml has been changed between 6 and 7.0 releases. Check your output.xml files and there should be a xml tag at the top of the file which says something along the lines:

```python
<robot generator="Robot 7.0.1 (Python 3.11.4 on win32)" generated="2024-09-02T13:52:29.896816" rpa="false" schemaversion="5">

```

generator attribute highlights which version of robot was used to to generate that file and also schemaversion plays into that.

Typically you would use the same version of rebot as the one that was used to generate the output.xml.

However, if you need to run newer robot, you can use `--legacyoutput` command line argument to robot itself so that the output.xml will be compatible with older robot/rebot. But as said, that needs to be decided before you run your tests/output.xml is generated.

---

<div class="post-metadata">

**Author:** ![rramalho](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rramalho](https://forum.robotframework.org/u/rramalho)\
**Post date:** [8 October 2024 10:50 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/8 "2024-10-08T10:50:46Z")

</div>

> [@rasjani](#):
>
> -legacyoutput

Hi Rasjani  
I have installed the follow versions

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/1/18ab68a95c256e5f9675b168968396b5ca2b9196.png)  
and version of output.xml is the follow:

\<?xml version="1.0" encoding="UTF-8"?\>

How can I run rebot to match with the output.xml file?

Thanks

---

<div class="post-metadata">

**Author:** ![rramalho](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rramalho](https://forum.robotframework.org/u/rramalho)\
**Post date:** [8 October 2024 10:53 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/10 "2024-10-08T10:53:35Z")

</div>

Version of output.xml file:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/4/46538197809be538ca89565f1bcd8ea08b7c4ab0.png)

---

<div class="post-metadata">

**Author:** ![rramalho](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rramalho](https://forum.robotframework.org/u/rramalho)\
**Post date:** [8 October 2024 11:47 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/11 "2024-10-08T11:47:57Z")

</div>

Issue solved.  
The problem was related with the version of Rebot that was not compatible with version of RF output.xml.  
Thanks Rasjani for the support.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [8 October 2024 11:50 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/12 "2024-10-08T11:50:18Z")

</div>

> [@rramalho](#):
>
> The problem was related with the version of Rebot that was not compatible with version of RF output.xml.

This means you have different installations, like I first suggested 🙂

---

<div class="post-metadata">

**Author:** ![rramalho](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rramalho](https://forum.robotframework.org/u/rramalho)\
**Post date:** [8 October 2024 11:51 UTC](https://forum.robotframework.org/t/merge-html-files-issue-using-rebot/7890/13 "2024-10-08T11:51:46Z")

</div>

You are right Helio, my mistake. Thanks for the support.
