The COLLADA schema declares three valid attributes for the <COLLADA> element: xmlns, version, and xml:base. According to XML and XML Schema language, element attributes must be declared in the schema in order to be valid in an instance document (i.e. a .dae file).
The DOM is code generated from the COLLADA schema and therefore only reads and writes valid documents. Adding more attributes like you are trying to do would produce an invalid document.
domFormula* formula = …
if(formula)
{
formula->setId(id.c_str());
formula->setNSUri(“MathML Namespace”);
…
}
Now the MathML Elements can be attached - don’t forget to set the “mathml:” prefix.
Patch for current DOM attached