Insert
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Civ6schema/xml/???.xsd"
to the root element of your XML/mod files.
Inspired by PlotinusRedux CIv6 ModInfo Schema, I'm not sure if anyone has done something similar, but I created civ6 schema, which defined all valid XML elements/attributes, and LUA methods/classes/constants.
This project is only 5% complete, but has helped me a lot when I wrote my mods. If the project is a duplicate, or someone has a better way in writing mods in a guided manner, certainly let me know! Otherwise please star/fork/contribute to this open source project. All comments are appriciated!
civ6schema works in Intellij Idea environment, provides auto-prompt, auto-completion, XML validation, documentation.
See the screenshot for details.
↑highlights incorrect attributes
↑autocomplete required attributes
list all text tags
↑list all valid values
↑LUA function prompt
↑LUA function documentations
↑Detailed explanation on certain topics
↑LUA reference setup
Sid Meier's Civilization VI text files
Sid Meier's Civilization VI SDK, ModBuddy
CIVILIZATION 6 MODDING GUIDE by Lee "LeeS" Shipp
Lua Objects: Gedemon. Lua Objects. 2016-10-23
Unknown author. Effects, Reqs & Collections
PlotinusRedux. CIv6 ModInfo Schema. 2016-12-05