Hi Richard,
This behavior is done by Excel 2002. Because Excel 2002 partially supports
XML, when opening an XML file with Excel 2002, it will be opened as a
Read-Only WorkSheet. Then some #agg columns are added and columns are
sorted alphabetically.
However, in Excel 2003, it will let you choose whether to open it as a
Read-Only WorkSheet or as an XML list. So these two problems can be avoided
in Excel 2003.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
--------------------
| Content-Class: urn:content-classes:message
| From: "Richard Roche" <
[email protected]>
| Sender: "Richard Roche" <
[email protected]>
| Subject: ds.WriteXML
| Date: Mon, 6 Oct 2003 16:26:39 -0700
| Lines: 13
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcOMYUrlMr2ykWWOQ8yPenLC59nDJg==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.framework.adonet
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:62989
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
|
| Is there an easy way to avoid the '#agg' columns and
| preserve the original column order when writing an XML
| file?
|
| ds.writexml("myFile.xml")
|
| I want to import it into Excel and not have the extra #agg
| columns and not have the columns sorted alphabetically.
|
| Thanks for any assistance.
|
| -Richard Roche
|
|