Explore the community Forums Lectora Online Lectora Online Questions & Answers Populate text boxes using strings pulled from external XML Reply To: Populate text boxes using strings pulled from external XML

#436887 Score: 0
Profile photo of Sam Higgins
Sam Higgins
Member
beginner
intermediate
curious george
wise owl
contributor
1 pt
@shiggins.9138

Thanks Joe
The aim is to create several language versions all contained within the same title where the text content can be populated based on the language choice and text updates can be made quickly to each version. I have seen the dyntitle.xml but I’m looking for a more user-friendly method (that file is particularly difficult to navigate quickly), where the text could be laid out like this…

<Page1>
<txt_1>
<en>This box is first</en>
<es>Es la primera</es>
<fr>Celui-çi la boîte première</fr>
</txt_1>
<txt_2>
<en>This box is second</en>
<es>Es la secunda</es>
<fr>Celui-çi la boîte deuxième</fr>
</txt_2>
</Page1>

…from which the JavaScript could select the appropriate content.

My problem is that I can’t seem to work out how to link the XML file to my JS through the Lectora storage

Thanks again