Hello, would you please advise how to start translating a xml file using a dtd file? (where the dtd file is to be imported?) Thanks a lot, Jana

Hello, would you please advise how to start translating a xml file using a dtd file? (where the dtd file is to be imported?) Thanks a lot, Jana
When you are creating the new XML file type, select Element rules in step 2:
Then in step 3 you will be able to add the DTD file:
Hello Jesus, thanks a lot for your help. I am confused though - in the official tutorial at https://www.trados.com/video/how-to-xml-files/148860/, they add in the step 3 not the dtd file, but the xml file.
I loved seeing you use the AI as it was intended by unchecking the verified answer and refining your question! Hopefully it helped you?
I just thought I clarify this point:
I am confused though - in the official tutorial at https://www.trados.com/video/how-to-xml-files/148860/, they add in the step 3 not the dtd file, but the xml file.
I think many people don't use DTD files. This would be a more sophisticated approach that some users probably don't come across. But in step 3 you have the choice of using the XML, XSD or a sdlftsettings file to help create your parser rules. In the video ( https://www.trados.com/video/how-to-xml-files/148860/ ) only a very simple file is used and so the presenter just used the XML file itself to help get a start creating the rules. You could also use the default settings and manually create your rules.
Paul Filkin | RWS Group
________________________
Design your own training!
You've done the courses and still need to go a little further, or still not clear?
Tell us what you need in our Community Solutions Hub
I loved seeing you use the AI as it was intended by unchecking the verified answer and refining your question! Hopefully it helped you?
I just thought I clarify this point:
I am confused though - in the official tutorial at https://www.trados.com/video/how-to-xml-files/148860/, they add in the step 3 not the dtd file, but the xml file.
I think many people don't use DTD files. This would be a more sophisticated approach that some users probably don't come across. But in step 3 you have the choice of using the XML, XSD or a sdlftsettings file to help create your parser rules. In the video ( https://www.trados.com/video/how-to-xml-files/148860/ ) only a very simple file is used and so the presenter just used the XML file itself to help get a start creating the rules. You could also use the default settings and manually create your rules.
Paul Filkin | RWS Group
________________________
Design your own training!
You've done the courses and still need to go a little further, or still not clear?
Tell us what you need in our Community Solutions Hub
Just to clarify in Trados Studio 2021 we had support for INI, ANL, XML, XSD, ITS or DTD files using the old XML (Embedded Content filetype)
In Trados Studio 2022 we only support the newer XML2 filetype and this only supports XML, sdftsettings or XSD rule files.
Paul Filkin | RWS Group
________________________
Design your own training!
You've done the courses and still need to go a little further, or still not clear?
Tell us what you need in our Community Solutions Hub
Hi Paul , I came across the same situation and I am trying to follow Jesús Prieto indications but Trados Studio crashes immediately after I add the DTD file. It seems DTD definition file is supported, since it is included in the supported file types, as you can see from the screenshots below:
I tried to select ST4.dtd and it seems to take it, but then it crashes.
Where am I wrong?
Thanks a lot,
Alessia
I don't know why it's crashing, but frankly the DTD is very unlikely to help you anyway and this is why it's not there in the XPath rules because it probably doesn't contain any information to help with your parser rules anyway. DTD has been mostly superseded by XSD because of its limitations.
I'd recommend you find another way to create your XML filetype. DTD won't get you parser rules, doesn't support namespaces, and has various other limitations. So anything you got from it you could probably add manually anyway.
If you have the sdlftsettings from your old version then use those instead to create a new filetype.
Paul Filkin | RWS Group
________________________
Design your own training!
You've done the courses and still need to go a little further, or still not clear?
Tell us what you need in our Community Solutions Hub
Hi Paul, thanks for your reply. We were able to use an old SDLftsettings file indeed.