Hi, Martin.
You shouldn't do it with direct edits, generally, it's better to use web UI when possible. But if you really must: try to edit `/opt/tomcat/conf/shibboleth2/idp/idp-metadata.xml.vm`, this is the template from which final file should be generated. You need to be familiar with Apache Velocity templates, of course.