Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10764 > unrolled thread

Why Export drops namespace prefixes in the exported XML?

Started by"Alexey Popkov" <lehin.p@gmail.com>
First post2012-07-03 02:16 +0000
Last post2012-07-03 02:16 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Why Export drops namespace prefixes in the exported XML? "Alexey Popkov" <lehin.p@gmail.com> - 2012-07-03 02:16 +0000

#10764 — Why Export drops namespace prefixes in the exported XML?

From"Alexey Popkov" <lehin.p@gmail.com>
Date2012-07-03 02:16 +0000
SubjectWhy Export drops namespace prefixes in the exported XML?
Message-ID<jstkma$k3b$1@smc.vnet.net>
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


[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web