diff --git a/src/Gui/SoFCDB.cpp b/src/Gui/SoFCDB.cpp index 4144658330..afc3df6f55 100644 --- a/src/Gui/SoFCDB.cpp +++ b/src/Gui/SoFCDB.cpp @@ -655,12 +655,11 @@ void Gui::SoFCDB::writeX3DChild( void Gui::SoFCDB::writeX3D(SoVRMLGroup* node, bool exportViewpoints, std::ostream& out) { out << "\n"; - out << "\n"; - out << "\n"; + out << "\n"; + "xsd:noNamespaceSchemaLocation=\"http://www.web3d.org/specifications/x3d-3.3.xsd\">\n"; out << " \n" " \n" " \n" @@ -727,22 +726,23 @@ bool Gui::SoFCDB::writeToX3DOM(SoNode* node, std::string& buffer) x3d = x3d.erase(0, pos + 1); std::stringstream out; - out << "\n" - << "\n"; + out << "\n"; - out << "\n" + out << "\n" << " \n" - << " FreeCAD X3DOM Export\n" << " \n" - << " \n" - << " \n" + << " \n" << " \n" - << " \n"; + << " \n" + << "
\n"; auto onclick = [&out](const char* text) { - out << " \n"; }; @@ -754,7 +754,7 @@ bool Gui::SoFCDB::writeToX3DOM(SoNode* node, std::string& buffer) onclick("Top"); onclick("Bottom"); - out << x3d; + out << "
\n" << x3d; out << " \n" << "\n";