Although it is very comfortable to including TinyXML2 (just adding .h and cpp, and it's over),
Some users wanted to have a modularized version of TinyXML2.
There is simple hack to do it. (As it is unofficial, and essentially modifies nothing in logic, I do not post the code.)
Just add export module TinyXML2; in first line, then export namespace tinyxml2 in header file,
Then cut-paste entire cpp file in bottom of header file, and rename it to have module extension.
Works fine.