At my best knowledge there is no direct way (like a script) generating C++ code from XML file. You can browse the existing topics on how to write a cpp scene on the forum, or read the documentation.
Hi,
I know XML file can read by c++.But I don not konw where to read the XML information in c++code .Such as how visual model and gravity information is passed to the c++ code by XML.