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?