#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 106
Default Excel export to XML

I have a spreadsheet with 800ish rows and 28 columns. I want to export it to
a custom XML file. I go to the XML data maping and map the xml file, it is
just an empty version of what I want. Map then export. The problem is that
it only exports the first row. Can anyone tell me how to get it to export
the entire spreadsheet without creating an XML file that has enough "room"
for all the cells in the spreadsheet?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 106
Default Excel export to XML

I am running 2003

"Stephen" wrote:

I have a spreadsheet with 800ish rows and 28 columns. I want to export it to
a custom XML file. I go to the XML data maping and map the xml file, it is
just an empty version of what I want. Map then export. The problem is that
it only exports the first row. Can anyone tell me how to get it to export
the entire spreadsheet without creating an XML file that has enough "room"
for all the cells in the spreadsheet?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 663
Default Excel export to XML

Hi

Follow these procedure;

Export XML data

Note XML features, except for saving files in the XML Spreadsheet format,
are available only in Microsoft Office Professional Edition 2003 and
Microsoft Office Excel 2003.

There are two ways to export XML data from an Excel worksheet.

The recommended method of getting XML data out of your worksheet is to use
the Export command on the XML submenu of the Data menu.
For backwards compatibility with previous XML functionality, you can still
use the Save As command on the File menu.
Export XML data in mapped cells to an XML data file
On the Data menu, point to XML, and then click Export.
If the Export XML dialog box appears, click the XML map that you want to
use, and then click OK.
The Export XML dialog box appears only if an XML list is not selected and
the workbook contains more than one XML map.

In the File name box, type a name for the XML data file.
Click Export.
Save XML data in mapped cells to an XML data file
On the File menu, click Save.
This step ensures that any changes made to your workbook won't be lost when
saving as an XML data file.

On the File menu, click Save As.
In the File name box, type a name for the XML data file.
In the Save as type list, click XML Data, and then click Save.
Click Continue when you receive an alert stating that saving the file as XML
data may result in the loss of features.
If the Export XML dialog box appears, click the XML map that you want to
use, and then click OK.
The Export XML dialog box appears only if an XML list is not selected and
the workbook contains more than one XML map.

Note You may have headings or labels in your worksheet different from the
the XML element names in the XML map. However, the XML element names are
always used when you export or save XML data from the worksheet.

Challa Prabhu

"Stephen" wrote:

I have a spreadsheet with 800ish rows and 28 columns. I want to export it to
a custom XML file. I go to the XML data maping and map the xml file, it is
just an empty version of what I want. Map then export. The problem is that
it only exports the first row. Can anyone tell me how to get it to export
the entire spreadsheet without creating an XML file that has enough "room"
for all the cells in the spreadsheet?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel export to XML

I ran into this same issue with a project I was working on. The problem was
that I originally had my xml base file as something like:

<people
<person
<name</name
<phoneNumber</phoneNumber
</person
</people

When mapped to the data in the corresponding Excel columns, I would only get
the first row of data.

However, if you take your xml base file and add another "Person" entry, like
so:


<people
<person
<name</name
<phoneNumber</phoneNumber
</person
<person
<name</name
<phoneNumber</phoneNumber
</person
</people

Excel will know that the "person" tag (and, its child nodes) is meant to be
used multiple times. Coincidently, in the tree view of the XML data on the
right-hand window of the excel screen (the one you get from going to
DataXMLXML Source...), you'll notice that the "file folder" icon associated
with the "Person" Tag will have a small blue square with a white "down" arrow
in it signifying that it is meant to be a repeated with different data.

Hope that helps.

Thanks,

Jack
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel export Maria Excel Worksheet Functions 1 May 12th 06 04:08 PM
excel to csv export Bob Excel Discussion (Misc queries) 1 February 6th 06 10:37 PM
Can I export from Excel to ACT Parm Excel Discussion (Misc queries) 2 July 1st 05 03:28 PM
Export from excel Maria Excel Discussion (Misc queries) 5 March 29th 05 07:51 PM
Export from excel Maria Excel Worksheet Functions 2 March 29th 05 03:07 PM


All times are GMT +1. The time now is 09:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"