Click here to Skip to main content
15,881,172 members
Home / Discussions / C#
   

C#

 
QuestionRepeat XML node Pin
kurangu22-Sep-09 9:48
kurangu22-Sep-09 9:48 
AnswerRe: Repeat XML node Pin
Richard MacCutchan22-Sep-09 10:01
mveRichard MacCutchan22-Sep-09 10:01 
GeneralRe: Repeat XML node Pin
kurangu22-Sep-09 10:10
kurangu22-Sep-09 10:10 
GeneralRe: Repeat XML node Pin
Richard MacCutchan22-Sep-09 10:14
mveRichard MacCutchan22-Sep-09 10:14 
GeneralRe: Repeat XML node Pin
kurangu22-Sep-09 10:22
kurangu22-Sep-09 10:22 
GeneralRe: Repeat XML node Pin
Mirko198022-Sep-09 22:00
Mirko198022-Sep-09 22:00 
GeneralRe: Repeat XML node Pin
Richard MacCutchan22-Sep-09 23:31
mveRichard MacCutchan22-Sep-09 23:31 
GeneralRe: Repeat XML node Pin
kurangu23-Sep-09 2:17
kurangu23-Sep-09 2:17 
HI,

It's a constant string.

string a =
"<SecDetails><Security PrimarySecID=\"abcd\" Price=\"12\"/></SecDetails>";


XmlDocument originalXml = new XmlDocument();
originalXml.LoadXml(a);

XmlNodeList nodelist = originalXml.SelectNodes("/SecDetails/Security");

foreach (XmlNode xn in nodelist)
{
here I should be able to repeat the node

for (int i=1; i<=10;i++)
{
I am struck here.
}


}
GeneralRe: Repeat XML node Pin
Mirko198023-Sep-09 2:58
Mirko198023-Sep-09 2:58 
GeneralRe: Repeat XML node Pin
Richard MacCutchan23-Sep-09 6:34
mveRichard MacCutchan23-Sep-09 6:34 
QuestionMouse and button position difference Pin
p3rson22-Sep-09 7:09
p3rson22-Sep-09 7:09 
AnswerRe: Mouse and button position difference Pin
EliottA22-Sep-09 7:36
EliottA22-Sep-09 7:36 
GeneralRe: Mouse and button position difference Pin
p3rson22-Sep-09 7:44
p3rson22-Sep-09 7:44 
GeneralRe: Mouse and button position difference Pin
EliottA22-Sep-09 7:56
EliottA22-Sep-09 7:56 
GeneralRe: Mouse and button position difference Pin
p3rson22-Sep-09 8:13
p3rson22-Sep-09 8:13 
GeneralRe: Mouse and button position difference Pin
EliottA22-Sep-09 8:21
EliottA22-Sep-09 8:21 
GeneralRe: Mouse and button position difference Pin
p3rson22-Sep-09 8:50
p3rson22-Sep-09 8:50 
GeneralRe: Mouse and button position difference Pin
EliottA22-Sep-09 8:53
EliottA22-Sep-09 8:53 
GeneralRe: Mouse and button position difference Pin
p3rson22-Sep-09 8:56
p3rson22-Sep-09 8:56 
GeneralRe: Mouse and button position difference Pin
Ian Shlasko22-Sep-09 9:27
Ian Shlasko22-Sep-09 9:27 
GeneralRe: Mouse and button position difference Pin
p3rson22-Sep-09 9:41
p3rson22-Sep-09 9:41 
QuestionContent-Disposition Attachment not working in IE7 Pin
sudhirBirlapur22-Sep-09 6:14
sudhirBirlapur22-Sep-09 6:14 
AnswerRe: Content-Disposition Attachment not working in IE7 Pin
EliottA22-Sep-09 7:35
EliottA22-Sep-09 7:35 
AnswerRe: Content-Disposition Attachment not working in IE7 Pin
Manas Bhardwaj22-Sep-09 9:07
professionalManas Bhardwaj22-Sep-09 9:07 
GeneralRe: Content-Disposition Attachment not working in IE7 Pin
sudhirBirlapur22-Sep-09 18:59
sudhirBirlapur22-Sep-09 18:59 

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.