Forum Topic - Reusing SLM modules and components.:
   
Reusing SLM modules and components.  
Hi experts, 

I am developing a monitor app that manages apps using SLM.
I want to use the 'Reusing SLM modules' feature in SLM(https://www.qnx.com/developers/docs/7.0.0/index.html#com.qnx.doc.
neutrino.utilities/topic/s/slm.html). However, even though I followed the guide, I couldn't reuse the SLM module.
I created my_reusable_modules.xml and executed it in the main XML file using the following code, but an error occurred.

I am sharing the XML files I used.

1. main.xml 
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE SLM_system [
    <!ENTITY test_A SYSTEM 'A_config2.xml'>
]>
<SLM:system>
    &test_A;
</SLM:system>

2. reusable module
<?xml version="1.0" encoding="utf-8"?>
<SLM:system>
    <SLM:component name="testA">
        <SLM:command>/ti_fs/testA/SLM_testA</SLM:command>
        <SLM:repair>restart</SLM:repair>
    </SLM:component>
</SLM:system>

3. execution command
slm -v /ti_fs/slm-config2.xml

4. error string
slm: error parsing config file: line 6: error in processing external entity reference


Please provide advice and guidance.

Attachment: Image 스크린샷 2025-02-03 11-29-53.png 143.08 KB
Re: Reusing SLM modules and components.  
I am using the QNX 7.0.0 version.