Hi;

 

I have a root node with a number of namespaces including one with no prefix:

      wb = doc.addElement("Workbook");

      wb.addNamespace("", "urn:schemas-microsoft-com:office:spreadsheet");

      wb.addNamespace("o", "urn:schemas-microsoft-com:office:office");

      wb.addNamespace("x", "urn:schemas-microsoft-com:office:excel");

      wb.addNamespace("ss", "schemas-microsoft-com:office:spreadsheet");

      wb.addNamespace("html", "http://www.w3.org/TR/REC-html40");

 

When I add an element to that element, I get:

      styles = wb.addElement("Styles");  è <Styles xmlns="">

 

How can I get rid of the xmlns=""?

 

Thanks - dave

Reply via email to