{"success":true,"data":{"ext":"tmx","name":"TMX","description":"TMX (Translation Memory eXchange) is an XML-based file format for storing bilingual translation memory data, originally created by the Localization Industry Standards Association (LISA) and maintained as an open interchange standard. It is used by computer-assisted translation tools, localization workflows, and translation management systems to exchange segments and terminology between applications. TMX is generally safe to process, although, as with any XML-based file, untrusted files should be handled with standard validation and parsing safeguards.","mime":["application/x-tmx"],"risk_level":"Safe","signatures":[{"hex":"3C 74 6D 78","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":[],"usage":{"python":"def is_tmx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TMX by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x74, 0x6D, 0x78])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isTMX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x74, 0x6D, 0x78]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsTMX(data []byte) bool {\n    signature := []byte{0x3C, 0x74, 0x6D, 0x78}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}