# XML Parsing Error 101: "\<?xml" expected (Row=1 Pos=1)

**URL:** <https://forum.xbench.net/t/xml-parsing-error-101-xml-expected-row-1-pos-1/212>\
**Category:** Technical Support\
**Created:** [December 16, 2016, 7:54am UTC](https://forum.xbench.net/t/xml-parsing-error-101-xml-expected-row-1-pos-1/212 "2016-12-16T07:54:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Surmar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/michal_surmar/32/80_2.png) [@Michal\_Surmar](https://forum.xbench.net/u/Michal_Surmar)\
**Post date:** [December 16, 2016, 7:54am UTC](https://forum.xbench.net/t/xml-parsing-error-101-xml-expected-row-1-pos-1/212/1 "2016-12-16T07:54:49Z")

</div>

Hi all,

I have recently installed Windows 10, Apsic Xbench 2.9 and STAR Transit. Export of .TMX documents into ApSIC fails with an error message XML Parsing Error 101: “\<?xml” expected (Row=1 Pos=1).

I have also tried ApSIC with an .SDLXLIFF file and it worked perfectly :-O.

Any ideas?

Thank you very much (y)

---

<div class="post-metadata">

**Author:** ![omartin](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/omartin/32/82_2.png) [@omartin](https://forum.xbench.net/u/omartin)\
**Post date:** [December 16, 2016, 9:17am UTC](https://forum.xbench.net/t/xml-parsing-error-101-xml-expected-row-1-pos-1/212/2 "2016-12-16T09:17:19Z")

</div>

Hi Michal,

When loading TMX files, Xbench 2.9 expects to find the XML declaration at the first line like `<?xml version="1.0" encoding="utf-16"?>`. The encoding value depends on the CAT tool.

Just open the TMX file with Notepad or Notepad++ and insert the XML declaration at the beginning.

Regards,  
Oscar.

---

<div class="post-metadata">

**Author:** ![gattapazza](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@gattapazza](https://forum.xbench.net/u/gattapazza)\
**Post date:** [October 27, 2021, 1:11pm UTC](https://forum.xbench.net/t/xml-parsing-error-101-xml-expected-row-1-pos-1/212/3 "2021-10-27T13:11:04Z")

</div>

Hi Oscar,  
Could you please advise the encoding value to be inserted into the XML declaration for SDL Studio 2021?  
I am having the same error as Michal\_Surmar but I export TM files in \*.tmx format using SDL Studio 2021.

Thanks a lot in advance,

Giulia

---

<div class="post-metadata">

**Author:** ![gattapazza](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@gattapazza](https://forum.xbench.net/u/gattapazza)\
**Post date:** [October 27, 2021, 1:31pm UTC](https://forum.xbench.net/t/xml-parsing-error-101-xml-expected-row-1-pos-1/212/4 "2021-10-27T13:31:48Z")

</div>

I don’t know if my experience could help other users, but it seems I fixed the problem changing the extension of the exported tm from \*.tmx to \*.txt.

Regards,

Giulia

---

<div class="post-metadata">

**Author:** ![omartin](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/omartin/32/82_2.png) [@omartin](https://forum.xbench.net/u/omartin)\
**Post date:** [November 11, 2021, 8:05am UTC](https://forum.xbench.net/t/xml-parsing-error-101-xml-expected-row-1-pos-1/212/5 "2021-11-11T08:05:35Z")

</div>

Giulia,

I don’t have access to Studio 2021 but in Studio 2017, the first line is the following:  
`<?xml version="1.0" encoding="utf-8"?>`

Regards,  
Oscar

---

<div class="post-metadata">

**Author:** ![Christelle\_Dessens](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/christelle_dessens/32/423_2.png) [@Christelle\_Dessens](https://forum.xbench.net/u/Christelle_Dessens)\
**Post date:** [May 15, 2023, 9:57am UTC](https://forum.xbench.net/t/xml-parsing-error-101-xml-expected-row-1-pos-1/212/6 "2023-05-15T09:57:43Z")

</div>

Hi Oscar,

I have an .xliff file downloaded from Lokalise that seems to have the correct xml declaration:

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

and it can be opened correctly in Chrome.  
However I get this error 101 xml expected when I try to load the xliff file to xBench 2.9.

Is there anything else I should be doing to load it correctly in xBench?

Thank you for your support.  
Christelle
