Invalid XML syntax?

Hello,

Under gvm-20.08 with gvm-cli, the following simple XML code gets an invalid XML syntax error. While it used to works fine under gvm-11:

> <create_target>
> <name>GSC, Horgen-Feller, CH-Switzerland</name>
> <comment>CH-Switzerland</comment>
> <hosts>10.143.39.0/24,10.143.40.0/24,10.143.41.0/24,10.143.43.0/24,10.143.44.0/24,10.143.45.0/24,10.143.46.0/24,10.143.47.0/24,10.143.48.0/24,10.143.49.0/24,10.143.50.0/24,10.143.52.0/28,10.143.52.160/29,10.143.52.176/28,10.143.55.0/24,10.143.56.0/24,10.143.42.0/24,10.143.51.0/26</hosts>
> <port_list id='33d0cd82-57c6-11e1-8ed1-406186ea4fc5'></port_list>
> </create_target>

This is surely something completely stupid, but I really don’t see what. Under GSA, manually entering those works just fine.

Any clue ?

Nevermind, that was indeed a very stupid issue ! I was using --xml parameter with an input XML file; so the filename was actually considered as the XML code ! doh !

3 Likes