Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.office.xml,microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Exporting denormalized data to XML

Hi,

I have some data in Excel that is denormalized. Looks like this:

RowID RowName RowSegID StartX EndX StartY EndY NumSeats
2 1 2.1 0 7.92 0.2 0.2 16
2 1 2.2 9.1593 17.0798 0.2 0.2 16
3 2 3.1 0 7.92 1 1 16
3 2 3.2 9.1593 17.0798 1 1 16
4 3 4.1 0 7.92 1.8 1.8 16
4 3 4.2 9.1593 17.0798 1.8 1.8 16


I need to export it to XML, in a structure like this:

<Rows
<Row id="2" name="1"
<RowSegment id="2.1" startx="0" endx="7.92" starty="0.2" endy="0.2"
numseats="16"/
<RowSegment id="2.2" startx="9.1593" endx="17.0798" starty="0.2"
endy="0.2" numseats="16"/
</Row
<Row id="3" name="2"
<RowSegment id="3.1" startx="0" endx="7.92" starty="0.2" endy="0.2"
numseats="16"/
<RowSegment id="3.2" startx="9.1593" endx="17.0798" starty="0.2"
endy="0.2" numseats="16"/
</Row
<Row id="4" name="2"
<RowSegment id="4.1" startx="0" endx="7.92" starty="0.2" endy="0.2"
numseats="16"/
<RowSegment id="4.2" startx="9.1593" endx="17.0798" starty="0.2"
endy="0.2" numseats="16"/
</Row
</Rows


At the moment, when I try to achieve this using the XML export feature
under the 'Developer XML' button of the ribbon, it does not let me
export. The error message complains because the data contains
denormalized data.

Can anyone tell me if this can be achieved... or do I need to give up
now?

Many thanks,

AT

  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.office.xml,microsoft.public.excel
external usenet poster
 
Posts: 1
Default Exporting denormalized data to XML

Andrew,

I'm afraid I can't give you a direct answer to your question, but I would
suggest that if there is a way, it is very complicated and you have to be an
XML guru to do it. I haven't seen any examples of mapping of cell values to
XML attributes in Excel help or newsgroups.

I find the use of XML in Excel way too complicated and confusing. For
example, if you just load the Example.XML/Example.XSD files that are provided
in Excel 2007 help, you can't export the resulting table to XML! You can
normalize it (whatever that means) by removing the mapping of the
denormalized elements, but then you don't get the employee information! Of
what value is that?

--
Stan


"Andrew Thelwell" wrote:

Hi,

I have some data in Excel that is denormalized. Looks like this:

RowID RowName RowSegID StartX EndX StartY EndY NumSeats
2 1 2.1 0 7.92 0.2 0.2 16
2 1 2.2 9.1593 17.0798 0.2 0.2 16
3 2 3.1 0 7.92 1 1 16
3 2 3.2 9.1593 17.0798 1 1 16
4 3 4.1 0 7.92 1.8 1.8 16
4 3 4.2 9.1593 17.0798 1.8 1.8 16


I need to export it to XML, in a structure like this:

<Rows
<Row id="2" name="1"
<RowSegment id="2.1" startx="0" endx="7.92" starty="0.2" endy="0.2"
numseats="16"/
<RowSegment id="2.2" startx="9.1593" endx="17.0798" starty="0.2"
endy="0.2" numseats="16"/
</Row
<Row id="3" name="2"
<RowSegment id="3.1" startx="0" endx="7.92" starty="0.2" endy="0.2"
numseats="16"/
<RowSegment id="3.2" startx="9.1593" endx="17.0798" starty="0.2"
endy="0.2" numseats="16"/
</Row
<Row id="4" name="2"
<RowSegment id="4.1" startx="0" endx="7.92" starty="0.2" endy="0.2"
numseats="16"/
<RowSegment id="4.2" startx="9.1593" endx="17.0798" starty="0.2"
endy="0.2" numseats="16"/
</Row
</Rows


At the moment, when I try to achieve this using the XML export feature
under the 'Developer XML' button of the ribbon, it does not let me
export. The error message complains because the data contains
denormalized data.

Can anyone tell me if this can be achieved... or do I need to give up
now?

Many thanks,

AT


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
Exporting Value Data Brento Excel Discussion (Misc queries) 1 July 18th 06 01:28 PM
Exporting Data Brento Excel Discussion (Misc queries) 1 February 8th 06 02:20 PM
exporting a lot of data lwm11 Excel Worksheet Functions 3 October 28th 05 02:25 PM
Exporting Data Ket Excel Worksheet Functions 0 March 24th 05 01:10 PM
exporting data abbylulu2 Excel Discussion (Misc queries) 1 March 19th 05 10:25 AM


All times are GMT +1. The time now is 06:26 PM.

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

About Us

"It's about Microsoft Excel"