Page MenuHomeFeedback Tracker

Double dashes in XML file comments considered invalid XML by some editors and validators
Assigned, UrgentPublic

Description

XML file comments containing "--" may cause validators to show an error, and editors to consider large parts of files to be comments for the purpose of syntax highlighting and code completion.

Here is a partial diff:

-               <!-- -------------------------  FARM ATTACHMENTS  ------------------------- -->
+               <!-- FARM ATTACHMENTS -->

While this may not affect the operation of DayZ, it does significantly impact the tools used to modify and check DayZ configuration files.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Config
Steps To Reproduce

See bash script below. Alternatively, edit cfgrandompresets.xml, cfgspawnabletypes.xml, or mapgroupproto.xml in VS Code and note the commented code, or upload to a web based XML validator and note the resulting errors.

Additional Information

Note how the XML elements following the invalid comment are considered to be comments.

Event Timeline

mattb created this task.Apr 18 2021, 1:32 PM
mattb updated the task description. (Show Details)
mattb updated the task description. (Show Details)
Geez changed the task status from New to Assigned.Apr 20 2021, 12:46 PM
mattb added a comment.EditedMay 9 2021, 2:30 PM

This issue is worse as of 1.12.

Here's a bash script that can be run against the mission files to check their validity using xmllint:

#!/bin/bash

check_xml_wellformed()
{
	find . -type f -name "*.xml" | while read FILE; do
		mimetype=`file --brief --mime-type $FILE`
		# if file is an xml file, check that it is well-formed
		if [ $mimetype == 'application/xml' ] || [ $mimetype == 'text/xml' ]; then
			if ! xmllint --noout $FILE; then
				echo "========================"
				echo "XML but not well-formed"
				echo "========================"
				echo ""
				retval=1
			else
				echo "XML check for $FILE: OK"
			fi
		fi
	done
	
	if [[ $retval -gt 0 ]]; then
		exit $retval
	fi
}

check_xml_wellformed
mattb added a comment.EditedMay 9 2021, 2:33 PM

Output:

bash xmlcheck.sh            
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/cfglimitsdefinition.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/cfgrandompresets.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/mapgroupcluster.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/hare_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/red_deer_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/wolf_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/roe_deer_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/hen_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/pig_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/bear_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/sheep_goat_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/zombie_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/wild_boar_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/domestic_animals_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/env/cattle_territories.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/cfgeventspawns.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/cfglimitsdefinitionuser.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/mapgroupcluster04.xml: OK
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                           ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                               ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                 ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                    ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                          ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:36: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:38: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                    ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:38: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:38: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                          ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:38: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:38: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:38: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:38: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:38: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                           ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                               ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                 ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                    ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                          ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:40: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:42: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                    ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:42: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:42: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                          ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:42: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:42: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:42: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:42: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:42: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                           ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                               ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                 ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                    ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                          ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:44: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:46: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                    ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:46: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:46: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                          ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:46: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:46: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:46: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:46: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:46: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                           ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                               ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                 ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                    ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                          ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:48: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:50: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                    ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:50: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:50: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                          ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:50: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:50: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:50: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:50: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:50: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  |     |     |     |     |        +--+--+--+--+--+--+--+--+
                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                         ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                           ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                               ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                 ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                     ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                    ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                          ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/cfgplayerspawnpoints.xml:52: parser error : Double hyphen within comment: <!--
                Density is sample frequency of cr
                  +-----+-----+-----+-----+        +--+--+--+--+--+--+--+--+
                                                                         ^
========================
XML but not well-formed
========================

XML check for ./dayzxb_missions/dayzOffline.chernarusplus/cfgeconomycore.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/mapgroupcluster01.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/mapgroupcluster03.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/db/events.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/db/globals.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/db/types.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/db/economy.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/db/messages.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/cfgenvironment.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/mapgroupcluster02.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/mapclusterproto.xml: OK
XML check for ./dayzxb_missions/dayzOffline.chernarusplus/cfgspawnabletypes.xml: OK
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- 
                <!-- -------------------------------------------------------------------------
                     ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- --
                <!-- -------------------------------------------------------------------------
                       ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ----
                <!-- -------------------------------------------------------------------------
                         ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ------
                <!-- -------------------------------------------------------------------------
                           ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- --------
                <!-- -------------------------------------------------------------------------
                             ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ----------
                <!-- -------------------------------------------------------------------------
                               ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ------------
                <!-- -------------------------------------------------------------------------
                                 ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- --------------
                <!-- -------------------------------------------------------------------------
                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ----------------
                <!-- -------------------------------------------------------------------------
                                     ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ------------------
                <!-- -------------------------------------------------------------------------
                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- --------------------
                <!-- -------------------------------------------------------------------------
                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ----------------------
                <!-- -------------------------------------------------------------------------
                                           ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ------------------------
                <!-- -------------------------------------------------------------------------
                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- --------------------------
                <!-- -------------------------------------------------------------------------
                                               ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ----------------------------
                <!-- -------------------------------------------------------------------------
                                                 ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ------------------------------
                <!-- -------------------------------------------------------------------------
                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- --------------------------------
                <!-- -------------------------------------------------------------------------
                                                     ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ----------------------------------
                <!-- -------------------------------------------------------------------------
                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ------------------------------------
                <!-- -------------------------------------------------------------------------
                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- --------------------------------------
                <!-- -------------------------------------------------------------------------
                                                           ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ----------------------------------------
                <!-- -------------------------------------------------------------------------
                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                               ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- --------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                 ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ----------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- ------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                     ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                           ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                               ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                                 ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                                   ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                                     ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                                       ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                                         ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                                           ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
                <!-- -------------------------------------------------------------------------
                                                                                             ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
        <!-- --------------------------------------------------------------------------
                                                                                      ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
!-- ----------------------------------------------------------------------------
                                                                               ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
- ------------------------------------------------------------------------------
                                                                               ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
--------------------------------------------------------------------------------
                                                                               ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
--------------------------------------------------------------------------------
                                                                               ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
--------------------------------------------------------------------------------
                                                                               ^
./dayzxb_missions/dayzOffline.chernarusplus/mapgroupproto.xml:12100: parser error : Double hyphen within comment: <!-- -------------------------------------------------
--------------------------------------------------------------------------------
                                                                               ^
========================
XML but not well-formed
========================

XML check for ./dayzxb_missions/dayzOffline.chernarusplus/mapgrouppos.xml: OK
mattb updated the task description. (Show Details)May 9 2021, 3:00 PM
mattb changed Severity from Tweak to Minor.
mattb updated the task description. (Show Details)
mattb edited Additional Information. (Show Details)May 10 2021, 3:09 PM
mattb edited Additional Information. (Show Details)
Mischkov added a subscriber: Mischkov.EditedMay 10 2021, 7:28 PM

In addition to this ticket, here some documentation about XML comments :

  1. Guidelines for the Use of Extensible Markup Language (XML) within IETF Protocols : https://datatracker.ietf.org/doc/html/rfc3470#section-4.6
  2. Extensible Markup Language (XML) 1.0 (Fifth Edition) W3C Recommendation https://www.w3.org/TR/REC-xml/#sec-comments

Despite not being strictly prohibited in the RFC (link n°1), this kind of comments "MUST NOT occur" (link n°2, section 2.5) :
"[Definition: Comments may appear anywhere in a document outside other markup; in addition, they may appear within the document type declaration at places allowed by the grammar. They are not part of the document's character data; an XML processor MAY, but need not, make it possible for an application to retrieve the text of comments. For compatibility, the string " -- " (double-hyphen) MUST NOT occur within comments.] Parameter entity references MUST NOT be recognized within comments."
I did not capitalize the letters of "MUST NOT" myself, you can see they are already capitalized in the original documentation for a good reason...

It's really annoying having to clean first Dayz XML-formatted files first before being able to parse them to do stuff or simply search for errrors.
The 3 first online XML validators I have found online detect the comments in Dayz reported above files as errors. Same with the first XML parser I had on hand (default Powershell XML native tools with a Windows 10 workstation).

Maybe these comments would be better in a specific more detailled documentation webpage as you did for other Dayz server specific files on https://community.bistudio.com/wiki .

mattb updated the task description. (Show Details)May 12 2021, 12:14 PM
mattb edited Steps To Reproduce. (Show Details)May 12 2021, 4:51 PM
mattb changed Category from General to Config.