Carlos E. R. wrote:
On 2023-04-26 13:18, Per Jessen wrote:
Carlos E. R. wrote:
On 2023-04-26 12:47, Per Jessen wrote:
Carlos E. R. wrote:
On 2023-04-26 08:45, Per Jessen wrote:
Carlos E. R. wrote: > (Can I write comments in xml file > /etc/firewalld/zones/external.xml?)
Yes, use "<!-- comment -->". Can span multiple lines.
Ah. Thanks.
Ah, Andrei notes that perhaps they will not be preserved. Ok, I can only try.
It depends on how that file is being managed - if individual elements are being added/removed, your comments might well be kept - but if the XML format is only used as storage, your comments most probably won't be kept.
Then the file should have a machine written comment at the top: do not edit, automatically generated file.
Frankly, no. XML is easily formatted to be human readable, but it is most often not intended as such. If you are editing XML, unless it is e.g. an XSLT stylesheet or an HTML page, you should assume it was produced by some code. IMHO.
Other software produce precisely that line.
In XML ? -- Per Jessen, Zürich (15.7°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes