Adding XML Parser rules
SDL 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, SDL Trados Studio can better sort translatable from non-translatable text and correctly display the extracted content.
About this task
Procedure
- Decide for which projects you want to configure file type settings:
- For the active project, go to the Projects view, and on the Home tab, select Project Settings.
- For all future projects, go to .
- 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. SDL Trados Studio uses XPath to specify the applicable nodes. This specification helps SDL 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.