Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
QuestionHelp Needed on Recording and playing back the events Pin
nelluru9-Feb-07 0:47
nelluru9-Feb-07 0:47 
AnswerRe: Help Needed on Recording and playing back the events Pin
Ed.Poore9-Feb-07 1:48
Ed.Poore9-Feb-07 1:48 
QuestionGenerating 3D graphs in .Net 2.0 Windows Forms Pin
devloper.web9-Feb-07 0:44
devloper.web9-Feb-07 0:44 
AnswerRe: Generating 3D graphs in .Net 2.0 Windows Forms Pin
Ed.Poore9-Feb-07 1:52
Ed.Poore9-Feb-07 1:52 
Questionscreen saver problem Pin
boss-tech9-Feb-07 0:33
boss-tech9-Feb-07 0:33 
AnswerRe: screen saver problem Pin
Pete O'Hanlon9-Feb-07 0:43
mvePete O'Hanlon9-Feb-07 0:43 
AnswerRe: screen saver problem Pin
Dave Kreskowiak9-Feb-07 5:43
mveDave Kreskowiak9-Feb-07 5:43 
Questionhow to iterate in child node in xml data? URGENT Pin
Tridip Bhattacharjee9-Feb-07 0:26
professionalTridip Bhattacharjee9-Feb-07 0:26 
how could i iterate in nested child node of a xml data.i have given the xml data below which is stored in my xml file.
now i want to write a function which will read all the child node under transaction node.suppose there are 3 child node under
/P2DXML/Sender/Recipient/Document[@Transactions='3']/Transaction node.
in a loop i want to read value from those child node.when read will be complete the control will go out of scope.
in my case Document[@Transactions='3' so only child node related to this will be read.
when Document[@Transactions='4' then only child node related to this will be read.if my question is clear then pls give me the answer with sample code.



<P2DXML Version="1.05.67" Documents="12">
<!-- This XML conforms to 1.05.67 or Earlier -->
<Sender HubId="30556" Documents="12">
<Recipient HubId="29552" Documents="12">
<Document Type="Sales Invoice" Transactions="3">
<InvoiceNumber>H74014</InvoiceNumber>
<InvoiceDate>05/01/2007</InvoiceDate>
<InvoiceTaxPointDate>05/01/2007</InvoiceTaxPointDate>
<InvoiceName>NEW LOOK RETAILERS LTD V1163</InvoiceName>
<InvoiceAccount>NEW13</InvoiceAccount>
<InvoiceAddress1>NEW LOOK HOUSE</InvoiceAddress1>
<InvoiceAddress2>MERCERY ROAD</InvoiceAddress2>
<InvoiceAddress3>WEYMOUTH</InvoiceAddress3>
<InvoiceAddress4>DORSET</InvoiceAddress4>
<InvoicePostcode>DT3 5HJ</InvoicePostcode>
<InvoiceCountryCode/>
<InvoiceContact/>
<DeliveryName>MODA FASHIONS</DeliveryName>
<DeliveryAccount>NEW13565</DeliveryAccount>
<DeliveryAddress1>UNIT C2, ENSIGN ESTATE</DeliveryAddress1>
<DeliveryAddress2>BOTANY WAY</DeliveryAddress2>
<DeliveryAddress3>PURFLEET</DeliveryAddress3>
<DeliveryAddress4>ESSEX</DeliveryAddress4>
<DeliveryPostcode>RM19 1TB</DeliveryPostcode>
<DeliveryCountryCode/>
<DespatchContact/>
<Terms>60 Days</Terms>
<DueDate>06/03/2007</DueDate>
<CurrencyCode>GBP</CurrencyCode>
<NettAmount>764.48</NettAmount>
<TaxAmount>133.79</TaxAmount>
<GrossAmount>898.27</GrossAmount>
<Transaction>
<LineNo>1</LineNo>
<Type>Product/Service</Type>
<OrderNo>1241932</OrderNo>
<ManufacturerCode>14491:SH41RU:WHITE</ManufacturerCode>
<BuyerCode>1206243</BuyerCode>
<DespatchNoteNumber>D64508</DespatchNoteNumber>
<DespatchDate>04/01/2007</DespatchDate>
<Description>&quot;WHITE &quot;NEW LOOK&quot; 3062309&quot;</Description>
<Quantity>2800</Quantity>
<UnitofMeasure>100</UnitofMeasure>
<Price>11.32</Price>
<NettValue>316.96</NettValue>
<TaxPercent>17.50</TaxPercent>
<TaxValue>55.47</TaxValue>
<GrossValue>372.43</GrossValue>
</Transaction>
<Transaction>
<LineNo>2</LineNo>
<Type>Product/Service</Type>
<OrderNo>1241932</OrderNo>
<ManufacturerCode>15034MO:CPIP36:WHITE</ManufacturerCode>
<BuyerCode>1206243</BuyerCode>
<DespatchNoteNumber>D64508</DespatchNoteNumber>
<DespatchDate>04/01/2007</DespatchDate>
<Description>&quot;WHITE &quot;NEW LOOK&quot;&quot;</Description>
<Quantity>1920</Quantity>
<UnitofMeasure>100</UnitofMeasure>
<Price>21.85</Price>
<NettValue>419.52</NettValue>
<TaxPercent>17.50</TaxPercent>
<TaxValue>73.42</TaxValue>
<GrossValue>492.94</GrossValue>
</Transaction>
<Transaction>
<LineNo>3</LineNo>
<Type>DeliveryCharge</Type>
<OrderNo>1241932</OrderNo>
<ManufacturerCode>CARRIAGE</ManufacturerCode>
<BuyerCode>1206243</BuyerCode>
<DespatchNoteNumber>D64508</DespatchNoteNumber>
<DespatchDate>04/01/2007</DespatchDate>
<Description>&quot;CARRIAGE CHARGES&quot;</Description>
<Quantity>1</Quantity>
<UnitofMeasure>EACH</UnitofMeasure>
<Price>28.00</Price>
<NettValue>28.00</NettValue>
<TaxPercent>17.50</TaxPercent>
<TaxValue>4.90</TaxValue>
<GrossValue>32.90</GrossValue>
</Transaction>
</Document>

<Document Type="Sales Invoice" Transactions="1">
<InvoiceNumber>H74015</InvoiceNumber>
<InvoiceDate>05/01/2007</InvoiceDate>
<InvoiceTaxPointDate>05/01/2007</InvoiceTaxPointDate>
<InvoiceName>NEW LOOK RETAILERS LTD V1163</InvoiceName>
<InvoiceAccount>NEW13</InvoiceAccount>
<InvoiceAddress1>NEW LOOK HOUSE</InvoiceAddress1>
<InvoiceAddress2>MERCERY ROAD</InvoiceAddress2>
<InvoiceAddress3>WEYMOUTH</InvoiceAddress3>
<InvoiceAddress4>DORSET</InvoiceAddress4>
<InvoicePostcode>DT3 5HJ</InvoicePostcode>
<InvoiceCountryCode/>
<InvoiceContact/>
<DeliveryName>SYNERGY LOGISTICS GROUP</DeliveryName>
<DeliveryAccount>NEW13456</DeliveryAccount>
<DeliveryAddress1>104-106 BRANTWOOD</DeliveryAddress1>
<DeliveryAddress2>BOOK IN MIKE 0208 880 9420</DeliveryAddress2>
<DeliveryAddress3>LONDON</DeliveryAddress3>
<DeliveryAddress4>LONDON</DeliveryAddress4>
<DeliveryPostcode>N17 0XW</DeliveryPostcode>
<DeliveryCountryCode/>
<DespatchContact/>
<Terms>60 Days</Terms>
<DueDate>06/03/2007</DueDate>
<CurrencyCode>GBP</CurrencyCode>
<NettAmount>10959.96</NettAmount>
<TaxAmount>1917.99</TaxAmount>
<GrossAmount>12877.95</GrossAmount>
<Transaction>
<LineNo>1</LineNo>
<Type>Product/Service</Type>
<OrderNo>1241932</OrderNo>
<ManufacturerCode>15034MO:CPIP36:WHITE</ManufacturerCode>
<BuyerCode>1206243</BuyerCode>
<DespatchNoteNumber>D64509</DespatchNoteNumber>
<DespatchDate>05/01/2007</DespatchDate>
<Description>&quot;WHITE &quot;NEW LOOK&quot;&quot;</Description>
<Quantity>50160</Quantity>
<UnitofMeasure>100</UnitofMeasure>
<Price>21.85</Price>
<NettValue>10959.96</NettValue>
<TaxPercent>17.50</TaxPercent>
<TaxValue>1917.99</TaxValue>
<GrossValue>12877.95</GrossValue>
</Transaction>
</Document>

</Recipient>
</Sender>
</P2DXML>




tbhattacharjee
AnswerRe: how to iterate in child node in xml data? URGENT Pin
Stefan Troschuetz9-Feb-07 0:49
Stefan Troschuetz9-Feb-07 0:49 
Questionhow to connect to default instance of SQL Server? Pin
bouli8-Feb-07 23:33
bouli8-Feb-07 23:33 
AnswerRe: how to connect to default instance of SQL Server? Pin
Colin Angus Mackay8-Feb-07 23:42
Colin Angus Mackay8-Feb-07 23:42 
AnswerRe: how to connect to default instance of SQL Server? Pin
Aaron VanWieren9-Feb-07 0:27
Aaron VanWieren9-Feb-07 0:27 
AnswerRe: how to connect to default instance of SQL Server? Pin
Ryno Burger9-Feb-07 0:47
Ryno Burger9-Feb-07 0:47 
QuestionIrDA - Infrared Pin
iqueiroz8-Feb-07 23:25
iqueiroz8-Feb-07 23:25 
AnswerRe: IrDA - Infrared Pin
m@u8-Feb-07 23:34
m@u8-Feb-07 23:34 
GeneralRe: IrDA - Infrared Pin
iqueiroz8-Feb-07 23:51
iqueiroz8-Feb-07 23:51 
GeneralRe: IrDA - Infrared Pin
m@u9-Feb-07 1:20
m@u9-Feb-07 1:20 
AnswerRe: IrDA - Infrared Pin
Ed.Poore8-Feb-07 23:49
Ed.Poore8-Feb-07 23:49 
GeneralRe: IrDA - Infrared Pin
iqueiroz8-Feb-07 23:52
iqueiroz8-Feb-07 23:52 
GeneralRe: IrDA - Infrared Pin
Ed.Poore9-Feb-07 1:43
Ed.Poore9-Feb-07 1:43 
AnswerRe: IrDA - Infrared Pin
Bekjong9-Feb-07 0:25
Bekjong9-Feb-07 0:25 
GeneralRe: IrDA - Infrared Pin
iqueiroz9-Feb-07 0:35
iqueiroz9-Feb-07 0:35 
QuestionOverriding OnMouseWheel Pin
Bekjong8-Feb-07 22:51
Bekjong8-Feb-07 22:51 
AnswerRe: Overriding OnMouseWheel Pin
Thomas Stockwell9-Feb-07 1:56
professionalThomas Stockwell9-Feb-07 1:56 
GeneralRe: Overriding OnMouseWheel Pin
Bekjong9-Feb-07 2:07
Bekjong9-Feb-07 2:07 

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.