I am trying to use this macro
https://raw.githubusercontent.com/Emurasoft/library/main/macros/XMLFormatter.jsee
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>
</header>
<body>
<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>
<tuv xml:lang="el-GR">
<seg>Σχετικά με εμάς</seg>
</tuv>
</tu>