Mobile menu

Embedded code in .xml not included in tags
Thread poster: Eleni Makantani

Eleni Makantani
Greece
Local time: 23:41
Partial member
English to Greek
+ ...
Apr 1, 2008

Hello again,

I am working on some .xml files and I wanted to load them on TagEditor (SDL Trados 7). The problem is that the files contain embedded code and this code doesn't appear like tags, but like plain text.

Is there some setting I can do to restore the tags?

Thanks,
E.

[Edited at 2008-04-01 10:51]


Direct link Reply with quote
 

tectranslate ITS GmbH
Local time: 22:41
German
+ ...
Code Snippet Apr 1, 2008

Can you please send me a short section of the XML document ?

You can use c:\windows\notepad.exe to copy a selection of text containing those embedded tags, make a new, empty text (.txt) file in Notepad and then paste it there. Attach it to an e-mail and send it to pischner#tectranslate.de (substitute the # with @.)

Then I'll have a look at them ASAP.

Unfortunately, this forum doesn't permit the direct quoting of markup text, or else you could just place the copied text in a new posting...

Regards,
Benjamin


Direct link Reply with quote
 

tectranslate ITS GmbH
Local time: 22:41
German
+ ...
CDATA section Apr 1, 2008

I've looked at the file and unfortunately, that behavior is by design. See, the affected text is in a CDATA section, which means it cannot (must not!) be interpreted by an XML parser. Everything that is in such a section will be read "as-is" without tag markup.

The only solutions I can see are that either:
a) your client stops using those CDATA sections (there are better ways and in the example you sent me they are clearly overusing them) or
b) you remove the offending CDATA prior to translation by editing the files in Notepad and then putting the CDATA instructions back in once you're done translating.

I've edited the example file you sent to me accordingly, just to show what I have in mind. Check your e-mail.

HTH,
Benjamin


Direct link Reply with quote
 

Eleni Makantani
Greece
Local time: 23:41
Partial member
English to Greek
+ ...
TOPIC STARTER
Thank you Apr 1, 2008

Many thanks, Benjamin. I think I'll ask the client to provide me with the original, text-only document. This will mean, of course, that my deadline will be a lot stricter, but at least I will get the chance to work undistracted.

Thanks again!


Direct link Reply with quote
 

tectranslate ITS GmbH
Local time: 22:41
German
+ ...
New Plug-in available Apr 22, 2008

Just in case you (or someone else who stumbles upon this thread) are going to encounter this problem again: there is a plug-in in Trados 2007 SP2 that supposedly enables you to edit these pesky CDATA sections and mark up the tags.

See this Trados Knowledge Base entry and this ProZ.com forum thread for more info.

HTH,
Benjamin


Direct link Reply with quote
 


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


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

Embedded code in .xml not included in tags

Advanced search


Translation news related to SDL Trados





memoQ translator pro
Kilgray's memoQ is the world's fastest developing integrated localization & translation environment rendering you more productive and efficient.

With our advanced file filters, unlimited language and advanced file support, memoQ translator pro has been designed for translators and reviewers who work on their own, with other translators or in team-based translation projects.

More info »
SDL MultiTerm 2017
Guarantee a unified, consistent and high-quality translation with terminology software by the industry leaders.

SDL MultiTerm 2017 allows translators to create one central location to store and manage multilingual terminology, and with SDL MultiTerm Extract 2017 you can automatically create term lists from your existing documentation to save time.

More info »



All of ProZ.com
  • All of ProZ.com
  • Term search
  • Jobs