Error message: "There is an error in XML document (1, 62)"

I try to open an .xml.txlf file (supplied in this format by my customer), but I get the following message:

"There is an error in XML document (1, 62)"

Can someone help me?

Parents
  • Hi ,

    Probably there is a weird character in the 1st row, column 62. I you can open the file with an Editor like Notepad++, maybe you will be able to spot it and edit it somehow and try again.

    If you can’t do it, maybe you can post here the file, at least the 2 first lines, and I can have a look.

    Otherwise you can tell your client. It’s his/her responsibility to send properly formatted files.

  • Thank you!

    See below the beginning of the file (WordFast, it seems).

    <?xml version="1.0" encoding="UTF-8"?><xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:gs4tr="">www.gs4tr.org/.../xliff-ext"><file original="00620_8825175983901.xml" gs4tr:system-attributes="&lt;attrs pd.xliff.id=&quot;1696635&quot;/&gt;" gs4tr:uuid="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" gs4tr:target-encoding="UTF-8" gs4tr:total-segment-count="7" gs4tr:target-eol="dos" gs4tr:md5checksum="ed902ea5b07de089bea86cb8532735bd" gs4tr:wordcount="65" datatype="x-regexp" source-language="en-US" target-language="fr-FR" gs4tr:translated-segment-count="1" gs4tr:simplifier="office"><header><skl><internal-file>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;hybris-export requester="hybris6.6.0.22" version="3"&gt;&lt;item article_number="00620" pk="8796166848513" type="AfterMarketProduct"&gt;&lt;attribute key="copyBulletPoint1" maxlen="500" translatable="yes"&gt;&lt;![CDATA[{paragraph-1-1}]]&gt;&lt;/attribute&gt;&lt;attribute key="copyBulletPoint2" maxlen="500" translatable="yes"&gt;&lt;![CDATA[{paragraph-1-2}]]&gt;&lt;/attribute&gt;&lt;attribute key="copyBulletPoint3" maxlen="500" translatable="yes"&gt;&lt;![CDATA[{paragraph-1-3}]]&gt;&lt;/attribute&gt;&lt;attribute key="copyMarketingBody" maxlen="2000" translatable="yes"&gt;&lt;![CDATA[{paragraph-1-4}]]&gt;&lt;/attribute&gt;&lt;attribute key="copyMarketingHeadline" maxlen="2000" translatable="yes"&gt;&lt;![CDATA[{paragraph-1-5}]]&gt;&lt;/attribute&gt;&lt;attribute key="copyPositioningStatement" maxlen="750" translatable="yes"&gt;&lt;![CDATA[{paragraph-1-6}]]&gt;&lt;/attribute&gt;&lt;attribute key="displayName" maxlen="255" translatable="yes"&gt;&lt;![CDATA[{paragraph-1-7}]]&gt;&lt;/attribute&gt;&lt;/item&gt;&lt;/hybris-export&gt;</internal-file></skl><phase-group><phase phase-name="Translation-1" process-name="No Review" contact-name="jnlebras" tool-id="PD" date="2021-06-17T18:52:18Z"/></phase-group><tool tool-id="PD" tool-name="ProjectDirector" tool-version="5.15.2"/></header><body><group id="page-1" restype="x-page" >
    <group id="paragraph-1-1" restype="x-paragraph" datatype="html" gs4tr:user-attributes="&lt;attrs satt_maxlen=&quot;500&quot; satt_key=&quot;copyBulletPoint1&quot; satt_translatable=&quot;yes&quot;/&gt;" gs4tr:segmented="true" >
    <trans-unit id="1-1-1" gs4tr:wordcount="11" gs4tr:editStatus="leveraged" >
    <source>Cane Creek spacers are CNC-machined and feature a black anodized finish</source>
    <target gs4tr:seginfo="&lt;root username=&quot;*leverager*&quot; timestamp=&quot;20210617T160139Z&quot;/&gt;" gs4tr:score="0" gs4tr:repscore="0" state="needs-translation" state-qualifier="x-no-match"/>
    </trans-unit>
    </group>

    Character 62 would be the 's' in  xmlns.

    Coralie

  • Hi ,

    You were supposed to insert a sample file of your XML. I see some garbage here, I don't know if it's due to the pasting process.

    Although I see nothing weird at that position (1,62), I think this part in the 1st line is wrong:

    Screenshot of Trados Studio showing an XML code snippet with a potential error, missing a less than symbol at the beginning of the line.

    Not because the ellipsis (3 dots), but because there is a missing less than symbol (<).

    If you confirm that this is the real text in the XML file, notify your client that the XML is corrupted. Otherwise, please insert a sample file (Insert menu > Image/video/file) with the same content as above.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 3:01 AM (GMT 0) on 29 Feb 2024]
Reply Children
No Data