"'xx' is an undeclared prefix. Line xxxx, position x" error when creating a custom "XML v2 with XPath rules" filter in Studio 2019
000011439|11/21/2019 4:11 PM
Scope/Environment
SDL Trados Studio 2019
Question
You are trying to create anĀ XML v2 with XPath rules file-type filterĀ but after adding your .xml file in order to define the parser settings, you receive the following error message: 'xx' is an undeclared prefix. Line xxxx, position x
Answer
The issue is caused by undeclared namespaces present in your source document(s). Open your file(s) in a text editor and check its syntax. You should receive a set of parsing errors that point to the lines on which the undefined namespace prefixes are found.
Remove all of the undefined namespaces or define them in your XML header, save the file and then try to re-create your filter.