Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10764
| From | "Alexey Popkov" <lehin.p@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Why Export drops namespace prefixes in the exported XML? |
| Date | 2012-07-03 02:16 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jstkma$k3b$1@smc.vnet.net> (permalink) |
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
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Why Export drops namespace prefixes in the exported XML? "Alexey Popkov" <lehin.p@gmail.com> - 2012-07-03 02:16 +0000
csiph-web