Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #25434

    I am trying to use this macro

    In order to change each node of a tmx file (type of xml) to a one liner (without any extra spaces/tabs). The file looks like this with tu marking beginning the and end of each node. When I run the macro I get “Unable to find XML”.

    <?xml version="1.0" encoding="utf-8"?>
    <tmx version="1.4">
      <header creationtool="SDL Language Platform" creationtoolversion="8.1" o-tmf="SDL TM8 Format" datatype="xml" segtype="sentence" adminlang="en-US" srclang="en-US" creationdate="20190208T170008Z" creationid="X">
        <prop type="x-Recognizers">RecognizeAll</prop>
        <prop type="x-IncludesContextContent">True</prop>
        <prop type="x-TMName">RI EN-EL</prop>
        <prop type="x-TokenizerFlags">DefaultFlags</prop>
        <prop type="x-WordCountFlags">DefaultFlags</prop>
        <tu creationdate="20051206T121213Z" creationid="SS" changedate="20121223T135026Z" changeid="USER" lastusagedate="20190215T112112Z" usagecount="1">
          <prop type="x-LastUsedBy">SS</prop>
          <prop type="x-Context">0, 0</prop>
          <prop type="x-Origin">TM</prop>
          <prop type="x-ConfirmationLevel">Translated</prop>
          <tuv xml:lang="en-US">
            <seg>About Us</seg>
          <tuv xml:lang="el-GR">
            <seg>Σχετικά με εμάς</seg>

    I had to select the text first, but still, the output is not as a one liner for each node. I.e. I want all content of each TU to be in a single line.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.