XPath & Structure information

Hello community,

 

Once again I am struggling with a bit of an unusual task: I have an XML file that contains comments in a "comment" attribute, and I need to find a way to display them in Studio:

 

<message id="about_page">About this app...</message>
<message id="device_id" comment="Please do not translate">Device ID</message>
<message id="contact_person">Contact Person</message>
<message id="image" comment="Only use Foto for user photos">Image</message>

 

Now I have two questions:

 

1) How do I manage to extract the "comment" strings at all? //message/@comment doesn't seem to work.

2) I found the "Structure Info" (not sure if this is the precise name as my UI is not in English) settings in Studio and now I am wondering if there is any way to mark the "comment" information as comments to make obvious that it is for reference only.

Thanks for any suggestions!

Bettina

 

PS: I know that using Passolo would easily solve all my problems, but unfortunately this is not an option (yet).