Advertisement

07.14.2008 at 02:00PM PDT, ID: 23564218
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.5

Export relational data from excel to xml

Asked by jmestep in Microsoft Excel Spreadsheet Software, Extensible Markup Language (XML), Access Coding/Macros

Tags:

I have a need to create a utility that will assist clients in exporting flat files of product data into xml format. They want to use Excel because they are familiar with it, but the data itself is for an ecommerce site/database where there are a minimum of 6 tables involved. They are taking data from a different ecommerce software, manipulating in Excel and have to have the export match an xsd that the new site data imput is looking for. They have data now in separate files for products, productoptions, options, optionchoice, etc. I can proabably do it in vb if I know where to start or if it is even possible in Excel. In Excel, is it possible to export xml for a spreadsheet with different areas of data, or a different workheet for each table, etc? Here is the xsd it needs to be exported with- I have tried but recevied various error messages, mostly one that the map is not exportable, which doesn't tell me much. I am able to open the map in Excel 2007 and map fields, but once I get away from just one table (products) I start getting erors. Here is the xsd created in VS 2005 from a test export of sample data in the ecommerce application the real data needs to go into.
Thanks for any help and/or links to helps. I've searched and searched. I also have MS Access 2007 available, but was trying to stick Excel which more people will have available.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
	<xs:element name="AbleCommerceExport">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="ExportVersion" type="xs:decimal" />
				<xs:element name="SourceVersion" type="xs:decimal" />
				<xs:element name="SourcePlatform" type="xs:string" />
				<xs:element name="SourceBuildNumber" type="xs:decimal" />
				<xs:element name="ExportPlatform" type="xs:string" />
				<xs:element name="ExportBuildNumber" type="xs:decimal" />
				<xs:element name="Store">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="StoreId" type="xs:unsignedByte" />
							<xs:element name="Name" type="xs:string" />
							<xs:element name="ApplicationName" type="xs:string" />
							<xs:element name="LicenseKey" />
							<xs:element name="DefaultWarehouseId" type="xs:unsignedByte" />
							<xs:element name="WeightUnitId" type="xs:unsignedByte" />
							<xs:element name="MeasurementUnitId" type="xs:unsignedByte" />
							<xs:element name="NextOrderId" type="xs:unsignedByte" />
							<xs:element name="OrderIdIncrement" type="xs:unsignedByte" />
							<xs:element name="Products">
								<xs:complexType>
									<xs:sequence>
										<xs:element maxOccurs="unbounded" name="Product">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="ProductId" type="xs:unsignedShort" />
													<xs:element name="StoreId" type="xs:unsignedByte" />
													<xs:element name="Name" type="xs:string" />
													<xs:element name="Price" type="xs:decimal" />
													<xs:element name="CostOfGoods" type="xs:unsignedByte" />
													<xs:element name="MSRP" type="xs:decimal" />
													<xs:element name="Weight" type="xs:decimal" />
													<xs:element name="Length" type="xs:unsignedByte" />
													<xs:element name="Width" type="xs:unsignedByte" />
													<xs:element name="Height" type="xs:unsignedByte" />
													<xs:element name="ManufacturerId" type="xs:unsignedByte" />
													<xs:element name="Manufacturer" type="xs:string" />
													<xs:element name="Sku" type="xs:string" />
													<xs:element name="ModelNumber" />
													<xs:element name="DisplayPage" />
													<xs:element name="TaxCodeId" type="xs:unsignedByte" />
													<xs:element name="TaxCode" type="xs:string" />
													<xs:element name="ShippableId" type="xs:unsignedByte" />
													<xs:element name="Shippable" type="xs:string" />
													<xs:element name="WarehouseId" type="xs:unsignedByte" />
													<xs:element name="Warehouse" type="xs:string" />
													<xs:element name="InventoryModeId" type="xs:unsignedByte" />
													<xs:element name="InStock" type="xs:unsignedByte" />
													<xs:element name="InStockWarningLevel" type="xs:unsignedByte" />
													<xs:element name="ThumbnailUrl" type="xs:string" />
													<xs:element name="ThumbnailAltText" type="xs:string" />
													<xs:element name="ImageUrl" type="xs:string" />
													<xs:element name="ImageAltText" type="xs:string" />
													<xs:element name="Summary" type="xs:string" />
													<xs:element name="Description" type="xs:string" />
													<xs:element name="VendorId" type="xs:unsignedByte" />
													<xs:element name="CreatedDate" type="xs:dateTime" />
													<xs:element name="LastModifiedDate" type="xs:dateTime" />
													<xs:element name="ProductTemplateId" type="xs:unsignedByte" />
													<xs:element name="IsFeatured" type="xs:boolean" />
													<xs:element name="IsProhibited" type="xs:boolean" />
													<xs:element name="AllowReviews" type="xs:boolean" />
													<xs:element name="AllowBackorder" type="xs:boolean" />
													<xs:element name="WrapGroupId" type="xs:unsignedByte" />
													<xs:element name="ExcludeFromFeed" type="xs:boolean" />
													<xs:element name="DisablePurchase" type="xs:boolean" />
													<xs:element name="MinQuantity" type="xs:unsignedByte" />
													<xs:element name="MaxQuantity" type="xs:unsignedByte" />
													<xs:element name="VisibilityId" type="xs:unsignedByte" />
													<xs:element name="Theme" />
													<xs:element name="IconUrl" />
													<xs:element name="IconAltText" type="xs:string" />
													<xs:element name="IsGiftCertificate" type="xs:boolean" />
													<xs:element name="CouponProduct" />
													<xs:element name="ExtendedDescription" />
													<xs:element name="HtmlHead" type="xs:string" />
													<xs:element name="UseVariablePrice" type="xs:boolean" />
													<xs:element name="MinimumPrice" type="xs:unsignedByte" />
													<xs:element name="MaximumPrice" type="xs:unsignedByte" />
													<xs:element name="SearchKeywords" />
													<xs:element name="HidePrice" type="xs:boolean" />
													<xs:element name="Assets" />
													<xs:element name="CustomFields" />
													<xs:element name="DigitalGoods" />
													<xs:element name="Images">
														<xs:complexType>
															<xs:sequence>
																<xs:element maxOccurs="unbounded" name="ProductImage">
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="ProductImageId" type="xs:unsignedByte" />
																			<xs:element name="ProductId" type="xs:unsignedShort" />
																			<xs:element name="ImageUrl" type="xs:string" />
																			<xs:element name="ImageAltText" />
																			<xs:element name="OrderBy" type="xs:unsignedByte" />
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="ProductOptions">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="ProductOption">
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="ProductId" type="xs:unsignedShort" />
																			<xs:element name="OptionId" type="xs:unsignedShort" />
																			<xs:element name="OrderBy" type="xs:unsignedByte" />
																			<xs:element name="Option">
																				<xs:complexType>
																					<xs:sequence>
																						<xs:element name="OptionId" type="xs:unsignedShort" />
																						<xs:element name="Name" type="xs:string" />
																						<xs:element name="ShowThumbnails" type="xs:boolean" />
																						<xs:element name="ThumbnailColumns" type="xs:unsignedByte" />
																						<xs:element name="ThumbnailWidth" type="xs:unsignedByte" />
																						<xs:element name="ThumbnailHeight" type="xs:unsignedByte" />
																						<xs:element name="CreatedDate" type="xs:dateTime" />
																						<xs:element name="Choices">
																							<xs:complexType>
																								<xs:sequence>
																									<xs:element maxOccurs="unbounded" name="Choice">
																										<xs:complexType>
																											<xs:sequence>
																												<xs:element name="OptionChoiceId" type="xs:unsignedShort" />
																												<xs:element name="OptionId" type="xs:unsignedShort" />
																												<xs:element name="Name" type="xs:string" />
																												<xs:element name="ThumbnailUrl" />
																												<xs:element name="ImageUrl" />
																												<xs:element name="PriceModifier" type="xs:unsignedByte" />
																												<xs:element name="CogsModifier" type="xs:unsignedByte" />
																												<xs:element name="WeightModifier" type="xs:unsignedByte" />
																												<xs:element name="SkuModifier" type="xs:string" />
																												<xs:element name="OrderBy" type="xs:unsignedByte" />
																											</xs:sequence>
																										</xs:complexType>
																									</xs:element>
																								</xs:sequence>
																							</xs:complexType>
																						</xs:element>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="ProductVolumeDiscounts" />
													<xs:element name="Reviews" />
													<xs:element name="TemplateFields" />
													<xs:element name="Variants">
														<xs:complexType>
															<xs:sequence minOccurs="0">
																<xs:element maxOccurs="unbounded" name="ProductVariant">
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="Available" type="xs:boolean" />
																			<xs:element name="ProductVariantId" type="xs:unsignedByte" />
																			<xs:element name="ProductId" type="xs:unsignedShort" />
																			<xs:element name="Option1" type="xs:unsignedShort" />
																			<xs:element name="Option2" type="xs:unsignedByte" />
																			<xs:element name="Option3" type="xs:unsignedByte" />
																			<xs:element name="Option4" type="xs:unsignedByte" />
																			<xs:element name="Option5" type="xs:unsignedByte" />
																			<xs:element name="Option6" type="xs:unsignedByte" />
																			<xs:element name="Option7" type="xs:unsignedByte" />
																			<xs:element name="Option8" type="xs:unsignedByte" />
																			<xs:element name="VariantName" />
																			<xs:element name="Sku" />
																			<xs:element name="Price" type="xs:decimal" />
																			<xs:element name="PriceModeId" type="xs:unsignedByte" />
																			<xs:element name="Weight" type="xs:decimal" />
																			<xs:element name="WeightModeId" type="xs:unsignedByte" />
																			<xs:element name="CostOfGoods" type="xs:unsignedByte" />
																			<xs:element name="InStock" type="xs:unsignedByte" />
																			<xs:element name="InStockWarningLevel" type="xs:unsignedByte" />
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="Specials" />
													<xs:element name="Categories">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="Category">
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="CategoryId" type="xs:unsignedByte" />
																			<xs:element name="Path" type="xs:string" />
																			<xs:element name="OrderBy" type="xs:byte" />
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xsd:schema>
 
Loading Advertisement...
 
[+][-]07.19.2008 at 06:08PM PDT, ID: 22044137

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Excel Spreadsheet Software, Extensible Markup Language (XML), Access Coding/Macros
Tags: Excel, xml, VS 2005
Sign Up Now!
Solution Provided By: boag2000
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.22.2008 at 09:41AM PDT, ID: 22061177

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 10:32AM PDT, ID: 22061658

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628