# Invalid XML File in XML to Human converter

**URL:** <https://forum.dmarcian.com/t/invalid-xml-file-in-xml-to-human-converter/2468>\
**Category:** Technical Help\
**Created:** [May 23, 2024, 8:10am UTC](https://forum.dmarcian.com/t/invalid-xml-file-in-xml-to-human-converter/2468 "2024-05-23T08:10:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elf](https://avatars.discourse-cdn.com/v4/letter/e/7993a0/32.png) [@Elf](https://forum.dmarcian.com/u/Elf)\
**Post date:** [May 23, 2024, 8:10am UTC](https://forum.dmarcian.com/t/invalid-xml-file-in-xml-to-human-converter/2468/1 "2024-05-23T08:10:52Z")

</div>

Hi everybody.

I use the ‘XML to Human converter’ page to analyze my DMARC reports.  
for a report I still have the message  
invalid xml file.  
when I edit this xml and look at it it seems compliant.  
Do you have any idea what’s going on?  
Thank you for your answers and for your help!

---

<div class="post-metadata">

**Author:** ![ronvdburg](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.dmarcian.com/ronvdburg/32/394_2.png) [@ronvdburg](https://forum.dmarcian.com/u/ronvdburg)\
**Post date:** [May 24, 2024, 9:23am UTC](https://forum.dmarcian.com/t/invalid-xml-file-in-xml-to-human-converter/2468/2 "2024-05-24T09:23:42Z")

</div>

It is impossible to tell without seeing it.

1. You may share (an anonimized version of) the xml content.
2. Or, you may use a ‘binary search’ to find out what is the culprit:  
2a. removing half of the s repeatedly until the xml file is not invalid anymore;  
2b. after having found the erroneous record, remove the parts under \<auth\_results\>;  
2… etc.

I found one occasion of invalid XML files in case of a DKIM record containing “k=ed25519”, some reporters don’t understand this and report an empty dkim domain and empty selector. These dmarc reporters only understand “k=rsa”.

1. You can also get the dmarc.xsd and use an editor capable of validating the xml syntax against the xsd.

---

<div class="post-metadata">

**Author:** ![Elf](https://avatars.discourse-cdn.com/v4/letter/e/7993a0/32.png) [@Elf](https://forum.dmarcian.com/u/Elf)\
**Post date:** [May 24, 2024, 11:57am UTC](https://forum.dmarcian.com/t/invalid-xml-file-in-xml-to-human-converter/2468/3 "2024-05-24T11:57:28Z")

</div>

they all came from [infomaniak.com](http://infomaniak.com)

```auto
<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
    <report_metadata>
        <org_name>infomaniak.com</org_name>
         <email>dmarc@infomaniak.com</email>
         <report_id>mycorp.fr:1716426001</report_id>
         <date_range>
         <begin>1716328800</begin>
         <end>1716415200</end>
         </date_range>
    </report_metadata>
    <policy_published>
        <domain>mycorp.fr</domain>
        <adkim>r</adkim>
        <aspf>r</aspf>
        <p>none</p>
        <sp>none</sp>
        <pct>10</pct>
    </policy_published>
    <record>
        <row>
            <source_ip>163.172.240.111</source_ip>
            <count>1</count>
            <policy_evaluated>
                <disposition>none</disposition>
                <dkim>pass</dkim>
                <spf>fail</spf>
                <reason>
                    <type>local_policy</type>
                    <comment>arc=fail</comment>
                </reason>
            </policy_evaluated>
        </row>
        <identifiers>
            <header_from>mycorp.fr</header_from>
        </identifiers>
        <auth_results>
            <spf>
                <domain></domain>
                <result>pass</result>
            </spf>
            <dkim>
                <domain>mycorp.fr</domain>
                <selector>protect</selector>
                <result>pass</result>
            </dkim>
            <dkim>
                <domain>mycorp.fr</domain>
                <selector>exchange</selector>
                <result>pass</result>
            </dkim>
        </auth_results>
    </record>
    <record>
        <row>
            <source_ip>135.125.122.66</source_ip>
            <count>1</count>
            <policy_evaluated>
                <disposition>none</disposition>
                <dkim>pass</dkim>
                <spf>fail</spf>
                <reason>
                    <type>local_policy</type>
                    <comment>arc=fail</comment>
                </reason>
            </policy_evaluated>
        </row>
        <identifiers>
            <header_from>mycorp.fr</header_from>
        </identifiers>
        <auth_results>
            <spf>
                <domain>shared-p100-i7.d.sp1-brevo.net</domain>
                <result>softfail</result>
            </spf>
            <dkim>
                <domain>mycorp.fr</domain>
                <selector>mail</selector>
                <result>pass</result>
            </dkim>
        </auth_results>
    </record>
</feedback>

```

---

<div class="post-metadata">

**Author:** ![Asher](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.dmarcian.com/asher/32/104_2.png) [@Asher](https://forum.dmarcian.com/u/Asher)\
**Post date:** [May 24, 2024, 4:48pm UTC](https://forum.dmarcian.com/t/invalid-xml-file-in-xml-to-human-converter/2468/4 "2024-05-24T16:48:25Z")

</div>

> [@Elf](#):
>
> [infomaniak.com](http://infomaniak.com)

Hi Eric,

Reports from [Infomaniak.com](http://Infomaniak.com) have been blocked due to a large amount of incorrectly reported authentication results from this provider which caused many domain owners to make wrong decision based on incorrect data. We have a contact at this provider and I will follow up with our internal support team to see if they warrant a revisit.

There does seem to still be some issues with how they report data. For instance, reporting a SPF policy of fail, but the check passing without providing a domain checked.

```auto
<record>
        <row>
            <source_ip>163.172.240.111</source_ip>
            <count>1</count>
            <policy_evaluated>
                <disposition>none</disposition>
                <dkim>pass</dkim>
                **<spf>fail</spf>**
                <reason>
                    <type>local_policy</type>
                    <comment>arc=fail</comment>
                </reason>
            </policy_evaluated>
        </row>
        <identifiers>
            <header_from>mycorp.fr</header_from>
        </identifiers>
        <auth_results>
            <spf>
                **<domain></domain>**
                **<result>pass</result>**
            </spf>
            <dkim>
                <domain>mycorp.fr</domain>
                <selector>protect</selector>
                <result>pass</result>
            </dkim>
            <dkim>
                <domain>mycorp.fr</domain>
                <selector>exchange</selector>
                <result>pass</result>
            </dkim>
        </auth_results>
    </record>

```

Thank you for bringing this to our attention!

---

<div class="post-metadata">

**Author:** ![Elf](https://avatars.discourse-cdn.com/v4/letter/e/7993a0/32.png) [@Elf](https://forum.dmarcian.com/u/Elf)\
**Post date:** [May 25, 2024, 10:51am UTC](https://forum.dmarcian.com/t/invalid-xml-file-in-xml-to-human-converter/2468/5 "2024-05-25T10:51:01Z")

</div>

Thank you for this very clear answer!

I would like to take this opportunity to tell you that your site is excellent and helps network administrators a lot!
