Hello. Is there anyone out there that can help me with tip regarding localisation of a webapp ?

I need tip on software or script that can go through html docs and find labels, or text tags including html comments with English text, and then auto create xml file or add to an existing localisation XML file like the example file structure seen below.

If there is a script or software that does this already, please tip me, if not, can anyone write a script maybe ?

Thank you.

Example XML...

?xml version="1.0" encoding="utf-8"?>

<resources xmlns:xliff="urnoasis:names:tc:xliff:document:1.2">
<!-- General strings -->

<!-- title for the dialog showing the error of camera hardware -->
<string name="camera_error_title">Camera error</string>

<!-- message for the dialog showing the error of camera hardware -->
<string name="cannot_connect_camera">Can\'t connect to the camera.</string>

<!-- message for the dialog showing the camera is disabled because of security policies. Camera cannot be used. -->
<string name="camera_disabled">Camera has been disabled because of security policies.</string>

</resources>