I don't understand your scenario. If you have text in one frame, exporting it as tagged text and then importing that tagged text file into another frame in the same document should result in exactly the same formatted text. If you were to copy and paste via script you would also get the same formatted text. Also, always state what computer platform and scripting language you are using, thanks.
you're right. It is not so evident :-) The text is copied from another document, saved in a section of a temporay XML file and then pasted to a TextFrame in another document. The source/destination computer platform can be Mac oder Win...I know that's a bit complicated, but I cannot change it, as it's a requirement of a customer of us :-(
Your tagged text is corrupt because of the forum software, so it is hard to tell. Please use the Advanced Editor and paste in the tagged text with >> XML formatting to preserve its nature.
Is this the minimal example that is placed incorrectly? Are you certain your XML transport is not the problem?