add schemaLocation attribute

This commit is contained in:
tooomm
2020-03-29 23:48:12 +02:00
committed by GitHub
parent 19f421fe2e
commit e6e6aacf0c

View File

@@ -190,7 +190,8 @@ def open_header(card_xml_file: IO[Any]) -> None:
:param card_xml_file: Card file path
"""
card_xml_file.write(
"<cockatrice_carddatabase version='3'>\n"
"<?xml version="1.0" encoding="UTF-8"?>\n"
+ "<cockatrice_carddatabase version='3' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://raw.githubusercontent.com/Cockatrice/Cockatrice/master/doc/carddatabase_v3/cards.xsd">\n"
+ " <!--\n"
+ " THIS FILE IS AUTOMATICALLY GENERATED & ALL EDITS WILL BE OVERRIDDEN.\n"
+ " -->\n"