def dict2xml(dictionary, root="topsApp", topcomp="topsinsar"):
    """Convert simple dictionary to XML for ISCE."""

    def add_property(property, value):
        xml = f"        <property name='{property}'>{value}</property>\n"
        return xml

    def add_component(name, properties):
        xml = f"    <component name='{name}'>\n"
        for prop, val in properties.items():
            xml += add_property(prop, val)
        xml += "    </component>\n"
        return xml

    dictionary = dictionary[topcomp]
    xml = f'<{root}>\n   <component name="{topcomp}">\n'
    for key, val in dictionary.items():
        if isinstance(val, dict):
            xml += add_component(key, val)
        else:
            xml += add_property(key, val)

    xml += f"    </component>\n</{root}>\n"

    return xml