Help defining XML Parser with length restrictions

Hi,

I am new to XML parser rules and XPath, so sorry in advance if my question is to obvious. I have read many threads and tried different XPath expressions but no luck so far.

I need to define XML Parser rules for a file with elements that should have two different length restrictions:

Screenshot of an XML file in Trados Studio with highlighted Entry subelements. Two entries are marked with annotations indicating character length restrictions, one should not exceed 35 characters and the other should not exceed 115 characters.

All Entry subelements of Record elements that contain the "CMSPLAINTEXT" value should not exceed 35 characters (and should ideally be shown with bolds or in another color in order to be easily differentiated)

All Entry subelements of Record elements that contain the "CMSTEXT" value should not exceed 115 characters

 

Do you have any suggestions on how show I define my Parser rules?



Generated Image Alt-Text
[edited by: Trados AI at 4:35 AM (GMT 0) on 5 Mar 2024]
emoji
Parents Reply Children