Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default ListObject - XML question

I need to produce an xml like the following
<customer_list_data
<customers
<customer
<customer_name detail="Customer_1"/
<customer_status detail="active"/
</customer
<customer
<customer_name detail="Customer_22"/
<customer_status detail="inactive"/
</customer
</customers
</customer_list_data

(Notice one extra parent "customer_list_data" above.)

for which the xsd is:

<xsd:schema targetNameSpace="customerbase"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="customerbase"
<xsd:element name="customers_list_data"
<xsd:complexType
<xsd:all
<xsd:element name="customers"
<xsd:complexType
<xsd:all
<xsd:element name="customer"
<xsd:complexType
<xsd:all
<xsd:element
name="customer_name" minOccurs="1" maxOccurs="1"

<xsd:complexType

<xsd:attribute name="detail" type="xsd:string" use="required"/

</xsd:complexType
</xsd:element
<xsd:element
name="customer_status" minOccurs="1" maxOccurs="1"

<xsd:complexType

<xsd:attribute name="detail" type="xsd:string" use="required"/

</xsd:complexType
</xsd:element

I need a list object in excel that would take user input for a list of:
customer_name, customer_status values.
Note that these correspond to the "detail" attributes of the above xsd, and
not to the xml text elements.

Now I want to produce an XmlDocument that matches the above xsd, based on
the data filled by the user in the list object.

What is the best way to do that in [ C#, VSTO 2005 SE, Excel 2003 ] ?

Note: Ideally I want to use data binding using this xsd and want an
XmlDocument to be ready already when the user clicks a button in the excel
sheet. I do Not want to use strongly typed datasets.

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
ListObject binding samsam Excel Programming 0 September 19th 06 08:05 AM
Excel 2003 ListObject question Frederick Chow Excel Programming 2 March 1st 06 08:52 AM
Events for listobject sai Excel Programming 1 February 8th 05 12:23 AM
LISTOBJECT question Marek Excel Programming 0 September 5th 04 10:21 AM
listobject ... Excel2003 Jim C.[_4_] Excel Programming 0 April 3rd 04 10:13 PM


All times are GMT +1. The time now is 10:24 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"