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

C#

 
QuestionSupressing a console window of and another exe Pin
Pavan Josh19-Sep-06 2:31
Pavan Josh19-Sep-06 2:31 
AnswerRe: Supressing a console window of and another exe Pin
Alper Camel19-Sep-06 4:37
Alper Camel19-Sep-06 4:37 
Questionhow can i create public variable Pin
vipinpaliwal198019-Sep-06 2:22
vipinpaliwal198019-Sep-06 2:22 
AnswerRe: how can i create public variable Pin
S. Senthil Kumar19-Sep-06 2:29
S. Senthil Kumar19-Sep-06 2:29 
GeneralRe: how can i create public variable Pin
Ravi Bhavnani19-Sep-06 3:15
professionalRavi Bhavnani19-Sep-06 3:15 
GeneralRe: how can i create public variable Pin
S. Senthil Kumar19-Sep-06 4:11
S. Senthil Kumar19-Sep-06 4:11 
GeneralRe: how can i create public variable Pin
Ravi Bhavnani19-Sep-06 4:18
professionalRavi Bhavnani19-Sep-06 4:18 
QuestionSplitting an XML document into smaller ones Pin
bigove19-Sep-06 1:57
bigove19-Sep-06 1:57 
I am trying to read an XML file and break it up into smaller chunks but am having real problems in doing so as I have never used XML (and am new to C#), so would appreciate any help possible. The problem is in two parts:

1) I have a file with some beginning header info, i.e. along the lines of:

<?xml version=”1.0” encoding=ISO-8859-1” ?>
<!—some comments -->
<message xmlns:xsi=”http….”…>
<header>
<more header stuff>text here</more header stuff>
<some more header stuff>text here</some more header stuff>
</header>

I wish to add this to every new XML document I create but am having problems when trying to write it.

2) I then wish to read a large XML document and cycle through it, copying each record to a new file that I have created (with the above header info), until I have 100 records, then start again. The format of the records is:

<Record>
<attribute1>blah blah</attribute1>
<attribute2>blah blah</attribute2>
<attribute3>blah blah</attribute3>
</Record>

I know that I need a for-loop to do this, but not having any experience of XML with C#, I don’t know what is needed to complete this task. Can anybody help please?!

Thank you to all who can assist!

AnswerRe: Splitting an XML document into smaller ones Pin
S. Senthil Kumar19-Sep-06 2:34
S. Senthil Kumar19-Sep-06 2:34 
GeneralRe: Splitting an XML document into smaller ones Pin
bigove19-Sep-06 2:48
bigove19-Sep-06 2:48 
GeneralRe: Splitting an XML document into smaller ones Pin
led mike19-Sep-06 5:08
led mike19-Sep-06 5:08 
GeneralRe: Splitting an XML document into smaller ones Pin
bigove20-Sep-06 3:26
bigove20-Sep-06 3:26 
Question"How can I call a function from another form" Pin
Orchid8519-Sep-06 0:59
Orchid8519-Sep-06 0:59 
AnswerRe: "How can I call a function from another form" Pin
Christian Graus19-Sep-06 1:07
protectorChristian Graus19-Sep-06 1:07 
GeneralRe: "How can I call a function from another form" Pin
Nick Parker19-Sep-06 11:54
protectorNick Parker19-Sep-06 11:54 
AnswerRe: "How can I call a function from another form" Pin
Nafiseh Salmani19-Sep-06 2:13
Nafiseh Salmani19-Sep-06 2:13 
AnswerRe: "How can I call a function from another form" Pin
Colin Angus Mackay19-Sep-06 3:08
Colin Angus Mackay19-Sep-06 3:08 
Questionstupid question Pin
faladrim19-Sep-06 0:46
faladrim19-Sep-06 0:46 
AnswerRe: stupid question Pin
Stefan Troschuetz19-Sep-06 0:58
Stefan Troschuetz19-Sep-06 0:58 
GeneralRe: stupid question Pin
faladrim19-Sep-06 1:17
faladrim19-Sep-06 1:17 
QuestionSuspend and ResumeBinding Pin
PaulPrice19-Sep-06 0:35
PaulPrice19-Sep-06 0:35 
QuestionClickOnce Updateing from an event. Pin
NaNg1524119-Sep-06 0:18
NaNg1524119-Sep-06 0:18 
Questioncreating login page Pin
arun-ice19-Sep-06 0:10
arun-ice19-Sep-06 0:10 
AnswerRe: creating login page Pin
_AK_19-Sep-06 0:22
_AK_19-Sep-06 0:22 
Questionlinear fitting Pin
Haoman1719-Sep-06 0:10
Haoman1719-Sep-06 0:10 

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.