]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/src/TDocument.cc
* code cleanup
[helm.git] / helm / DEVEL / mathml_editor / src / TDocument.cc
index 4c3bbbaea6bfca6d3b2b1fa1c2e94b49fce9f527..a7b5c8d3a5d2cb57fcd5adc11f79eb6e61ad91ab 100644 (file)
@@ -11,8 +11,8 @@ TDocument::TDocument()
   DOM::DocumentType dt;
   doc = di.createDocument(TML_NS_URI, "tml:tex", dt);
   DOM::Element root = doc.get_documentElement();
-  root.setAttributeNS(XMLNS_NS_URI, "xmlns:tml", TML_NS_URI);
   assert(root);
+  root.setAttributeNS(XMLNS_NS_URI, "xmlns:tml", TML_NS_URI);
 
   DOM::EventTarget et(doc);
   assert(et);