Hello everyone, i try to make some converting manipulations with files such as converting translated simple text file into xml file with using JAXP+SAX. So, i have an xml file like this for example:
<?xml version="1.0" encoding="UTF-8"?><xliff xlmns="urn:oasis:names:tc:xliff:document:1.2">
<file>
<body>
<trans-unit id="1">
<source xml:lang="en">File Conversion. Convert File to XLIFF Format.
Transport Project Files to Orignal Format.</source>
</trans-unit>
<trans-unit id="2">
<source xml:lang="en">Convert File to XLIFF Format.</source>
</trans-unit>
i extract text from
source tag this file in text file, then i translate it, and then again convert it text file into a similar xml file. And i must became in this new translated xml file exactly such text content on each
source element, for example, this content from source element in trans-unit with id="1", here is 3 sentences
<trans-unit id="1">
<source xml:lang="en">File Conversion. Convert File to XLIFF Format.
Transport Project Files to Orignal Format.</source>
</trans-unit>
would be translated in another language, and it is on text file, and i convert it in xml again, and become this xml file with this 3 sentences again:
<trans-unit id="1">
<target>File Konvertierung. Den File in XLIFF Format konvertieren.
Projektdateien in ursprungsformat transportieren.</target>
</trans-unit>
so could someone please give me any suggestions or advices in wich way schould i go, how can i become exactly that amount of sentences of the text in deutsch in an output xml file during converting it from text file such as in an input english xml file?
Thank you