How do I programatically get my own Firefox extension's version number with Javascript?
My extension has an install.rdf file containing the version number similar to below. I want to extract the contents of the <em:version>
tag.
<?xml version="1.0" encoding="UTF-8"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
...
<em:version>1.0</em:version>
...
</Description>
</RDF>