Click here to Skip to main content
15,921,548 members
Home / Discussions / C#
   

C#

 
Questionfile transfer Pin
giltendezm16-Feb-07 14:16
giltendezm16-Feb-07 14:16 
AnswerRe: file transfer Pin
Niiiissssshhhhhuuuuu16-Feb-07 16:47
Niiiissssshhhhhuuuuu16-Feb-07 16:47 
GeneralRe: file transfer Pin
giltendezm16-Feb-07 18:01
giltendezm16-Feb-07 18:01 
GeneralRe: file transfer Pin
Niiiissssshhhhhuuuuu16-Feb-07 19:18
Niiiissssshhhhhuuuuu16-Feb-07 19:18 
GeneralRe: file transfer Pin
Niiiissssshhhhhuuuuu16-Feb-07 19:27
Niiiissssshhhhhuuuuu16-Feb-07 19:27 
GeneralRe: file transfer Pin
giltendezm16-Feb-07 19:49
giltendezm16-Feb-07 19:49 
GeneralRe: file transfer Pin
Niiiissssshhhhhuuuuu16-Feb-07 19:56
Niiiissssshhhhhuuuuu16-Feb-07 19:56 
QuestionExcel ListObject to XmlDocument C# [modified] Pin
Raghutoo16-Feb-07 13:13
Raghutoo16-Feb-07 13:13 
(If this is not the right forum for this question, please let me know which one).

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. DataSet seems to have a problem reading in its xsd and properly identifying customer 'table'.)

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.


-- modified at 19:20 Friday 16th February, 2007
QuestionDateTime Pin
Expert Coming16-Feb-07 12:37
Expert Coming16-Feb-07 12:37 
AnswerRe: DateTime Pin
Guffa16-Feb-07 13:58
Guffa16-Feb-07 13:58 
QuestionRemoving a " from a string Pin
sharpiesharpie16-Feb-07 12:16
sharpiesharpie16-Feb-07 12:16 
AnswerRe: Removing a " from a string Pin
Christian Graus16-Feb-07 12:18
protectorChristian Graus16-Feb-07 12:18 
GeneralRe: Removing a " from a string Pin
sharpiesharpie16-Feb-07 12:45
sharpiesharpie16-Feb-07 12:45 
GeneralRe: Removing a " from a string Pin
Christian Graus18-Feb-07 9:09
protectorChristian Graus18-Feb-07 9:09 
AnswerRe: Removing a &quot; from a string Pin
Guffa16-Feb-07 14:01
Guffa16-Feb-07 14:01 
GeneralRe: Removing a &quot; from a string Pin
sharpiesharpie16-Feb-07 15:46
sharpiesharpie16-Feb-07 15:46 
AnswerRe: Removing a &quot; from a string Pin
Guffa17-Feb-07 14:58
Guffa17-Feb-07 14:58 
AnswerRe: Removing a " from a string Pin
Thomas Stockwell16-Feb-07 16:16
professionalThomas Stockwell16-Feb-07 16:16 
GeneralRe: Removing a " from a string Pin
sharpiesharpie17-Feb-07 1:34
sharpiesharpie17-Feb-07 1:34 
Questionhow to implement payflopro_recurringbilling through pfpro_dotnet_sdk_RC2_v1.1(verisign sdk) in c# Pin
shankhan bhandari16-Feb-07 11:33
shankhan bhandari16-Feb-07 11:33 
AnswerRe: how to implement payflopro_recurringbilling through pfpro_dotnet_sdk_RC2_v1.1(verisign sdk) in c# Pin
Wayne Phipps17-Feb-07 3:23
Wayne Phipps17-Feb-07 3:23 
QuestionProblem: vista will not sent a WM_ message [modified] Pin
michele_cv16-Feb-07 10:37
michele_cv16-Feb-07 10:37 
Questiongetting each byte of the pixel Pin
samreengr816-Feb-07 9:47
samreengr816-Feb-07 9:47 
AnswerRe: getting each byte of the pixel Pin
Christian Graus16-Feb-07 10:00
protectorChristian Graus16-Feb-07 10:00 
AnswerRe: getting each byte of the pixel Pin
Wayne Phipps17-Feb-07 4:29
Wayne Phipps17-Feb-07 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.