https://www.proz.com/forum/sdl_trados_support/252634-how_can_i_find_a_line_back_in_a_xml_file.html

How can I find a line back in a XML file?
Thread poster: Olieslagers
Olieslagers
Olieslagers
French Polynesia
Local time: 03:48
Dutch to French
+ ...
Jul 11, 2013

Hello,

I just delivered a translated XML file and apparently the file contains an error:

Process file : xxxxxxxxxxxxxxxxxxxxxx - OR111255_20130704090747.xml
ERROR: Element '{http://www.authorit.com/xml/authorit}DisplayName' is unexpected according to content model of parent element '{http://www.authorit.com/xml/authorit}Variable'.
Expecting: {http://www.authorit.com/xml/authorit}ListOfValues.

Line: 187
68HI

For your informati
... See more
Hello,

I just delivered a translated XML file and apparently the file contains an error:

Process file : xxxxxxxxxxxxxxxxxxxxxx - OR111255_20130704090747.xml
ERROR: Element '{http://www.authorit.com/xml/authorit}DisplayName' is unexpected according to content model of parent element '{http://www.authorit.com/xml/authorit}Variable'.
Expecting: {http://www.authorit.com/xml/authorit}ListOfValues.

Line: 187
68HI

For your information, I translated this file using Trados editor and I used the INI file.
So my question is: how can I find this line number 187? I suppose thats the one that contains the error.

Thank you for your help!
Collapse


 
Riccardo Schiaffino
Riccardo Schiaffino  Identity Verified
United States
Local time: 07:48
Member (2003)
English to Italian
+ ...
Open the XML in any decent text editor Jul 11, 2013

Open the XML file (it is, in any case, a text file), using any decent Text editor (a good one is Notepad++)

 
Olieslagers
Olieslagers
French Polynesia
Local time: 03:48
Dutch to French
+ ...
TOPIC STARTER
Thank you Riccardo! Jul 12, 2013

Isn't it simple once you know !

Now I still have to find the reason of this error...


 
Riccardo Schiaffino
Riccardo Schiaffino  Identity Verified
United States
Local time: 07:48
Member (2003)
English to Italian
+ ...
Try this Jul 12, 2013

If line 187 includes the string

{http://www.authorit.com/xml/authorit}DisplayName

try replacing it with

{http://www.authorit.com/xml/authorit}ListOfValues

Btw... anything you try - first make a copy of your file


 
Olieslagers
Olieslagers
French Polynesia
Local time: 03:48
Dutch to French
+ ...
TOPIC STARTER
Problem is fixed Jul 13, 2013

I managed to fix the problem by running the TM over a clean original file.

Thanks very much for your help Riccardo, I really appreciated it!


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

How can I find a line back in a XML file?


Translation news related to SDL Trados





Anycount & Translation Office 3000
Translation Office 3000

Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »