Set a default namespace?

Jun 5, 2013 at 4:53 AM
Edited Jun 5, 2013 at 4:57 AM
Is it possible to set a default namespace using the mce_writer?

e.g.
<?xml version="1.0"?> <!-- As an aside, shouldn't this include the encoding?! -->
<item xmlns:mce="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns="http://mydefault.com/fileformat" title="">
<blah>Is in the default xmlns</blah>
</item>
Doing this:
mceTextWriterRegisterNamespace(w, _X(XmlTags::defaultNamespace), NULL, MCE_DEFAULT);
Doesn't add the namespace anywhere.
Coordinator
Jun 6, 2013 at 10:15 AM
Hi,

there is. However it turns out there is a bug. I'll update the source...

Florian



Jun 6, 2013 at 11:40 AM
Ok thanks. I'll keep an eye out for the update.