thank´s for your help. I tryed your suggestion: ‘<get_targets filter=“name=targetA”>’ and ‘<get_targets filter=“name=targetA”/>’.
Unfortunately, I get the same XML error. When I try to output something else without a filter for example: ‘<get_targets/>’ this works fine.
If just tested to run gvm-cli socket --pretty --xml "<get_targets filter='name=foo'/>" and it works fine for me. Note: I am using gvm-cli on Linux. Could you paste the version of gvm-cli gvm-cli.exe --version and maybe write something about the installation method?
I use the following version under the windows operating system: gvm-cli.exe 21.1.0 (API version 21.4.0)
I scripted the API using PowerShell. I have just copied your XML path one to one and used it for myself. Now it works flawlessly. I may have simply swapped a few quotes and/or shlashes.