Adding XML Parser rules
Trados Studio uses a default set of Parser rules for extracting content from the most important types of XML files. Use the Parser rule settings to define the properties of the XML parser rules. As a result, Trados Studio can better sort translatable from non-translatable text and correctly display the extracted content.
About this task
Procedure
- To configure file type settings, go to:
- Projects view > Home > Project Settings, for the active project.
- , for all future projects.
- Expand the File Types tree.
- Select an XML file type for which you want to add XML Parser rules.
- Select Add....
- In the Add Rule dialog, select a rule type from the Rule type list. Trados Studio uses XPath to specify the applicable nodes. This specification helps Trados Studio to identify the rule, and so does not allow you to have two rules with the same XPath location. Provide one of the following:
- Attribute - Provide the element attribute pair, even if you do not know XPath syntax.
- Element - Provide an element name, even if you do not know XPath syntax.
- XPath - Provide the XPath directly.
- Under Properties:
- Select OK.