text: [Date Index]
  [Thread Index]
  [Author Index]
  Why Export drops namespace prefixes in the exported XML?
  Good day,
  I am trying to generate Excel-compatible XML file from Mathematica. At
  first, I have created a test XML file by saving a Microsoft Excel workbook
  as "XML Table". Then I imported this file:
  XMLdata = Import["test.xml", "IncludeNamespaces" -> True]
  Now I am Exporting this backward to XML:
  Export["test_exported.xml", XMLdata, "AttributeQuoting" -> "\""]
  The generated file cannot be opened by Excel. Comparison it with the
  original file shows that most of namespace prefixes are dropped although
  they were present in XMLdata. Why this happens? How to Export correct XML
  file which will be compatible with Excel?
  Thanks in advance.
  Alexey