Click here to Skip to main content
15,897,718 members
Home / Discussions / C#
   

C#

 
QuestionStoring HTML within XML Pin
Nadia Monalisa11-Jul-08 13:17
Nadia Monalisa11-Jul-08 13:17 
AnswerRe: Storing HTML within XML Pin
Guffa11-Jul-08 14:54
Guffa11-Jul-08 14:54 
GeneralRe: Storing HTML within XML Pin
Nadia Monalisa11-Jul-08 21:43
Nadia Monalisa11-Jul-08 21:43 
AnswerRe: Storing HTML within XML Pin
Guffa11-Jul-08 21:55
Guffa11-Jul-08 21:55 
QuestionHow can we read XML line by line ? Pin
Mohammad Dayyan11-Jul-08 12:26
Mohammad Dayyan11-Jul-08 12:26 
AnswerRe: How can we read XML line by line ? Pin
Guffa11-Jul-08 14:57
Guffa11-Jul-08 14:57 
GeneralRe: How can we read XML line by line ? Pin
Mohammad Dayyan12-Jul-08 1:55
Mohammad Dayyan12-Jul-08 1:55 
GeneralRe: How can we read XML line by line ? Pin
Guffa12-Jul-08 8:24
Guffa12-Jul-08 8:24 
An XML file is not line based, so reading it line by line doesn't make sense. An XML file is just as valid if it looks like this:
<root>
  <node>1</node>
  <node>2</node>
</root>

or like this:
<root><node>1</node><node>2</node></root>

Use an XmlDocument object to read the file.

The DocumentElement property gives you the root node, from there you can navigate the tree structure using the FirstChild or ChildNodes properties. When you reach the node containing the nodes that you want, the ChildNodes property gives you a collection of all the nodes.

Another alternative to get the nodes from the XmlDocument is to use an xpath expression with the SelectNodes method.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: How can we read XML line by line ? Pin
Mohammad Dayyan12-Jul-08 10:37
Mohammad Dayyan12-Jul-08 10:37 
AnswerRe: How can we read XML line by line ? Pin
PIEBALDconsult11-Jul-08 16:32
mvePIEBALDconsult11-Jul-08 16:32 
AnswerRe: How can we read XML line by line ? Pin
Elroy Dsilva11-Jul-08 21:43
Elroy Dsilva11-Jul-08 21:43 
QuestionSend Mail Confirmation Pin
ctrlnick11-Jul-08 10:40
ctrlnick11-Jul-08 10:40 
AnswerRe: Send Mail Confirmation Pin
leppie11-Jul-08 11:17
leppie11-Jul-08 11:17 
AnswerRe: Send Mail Confirmation Pin
Nadia Monalisa11-Jul-08 13:07
Nadia Monalisa11-Jul-08 13:07 
QuestionExtract image(s) from richTextBox Pin
bob200811-Jul-08 9:40
bob200811-Jul-08 9:40 
QuestionAny MultiPage Control available for Windows Form ? Pin
Nadia Monalisa11-Jul-08 7:58
Nadia Monalisa11-Jul-08 7:58 
AnswerRe: Any MultiPage Control available for Windows Form ? Pin
Luc Pattyn11-Jul-08 8:17
sitebuilderLuc Pattyn11-Jul-08 8:17 
GeneralRe: Any MultiPage Control available for Windows Form ? Pin
Nadia Monalisa11-Jul-08 8:52
Nadia Monalisa11-Jul-08 8:52 
GeneralRe: Any MultiPage Control available for Windows Form ? Pin
Luc Pattyn11-Jul-08 9:10
sitebuilderLuc Pattyn11-Jul-08 9:10 
GeneralRe: Any MultiPage Control available for Windows Form ? Pin
Nadia Monalisa11-Jul-08 9:51
Nadia Monalisa11-Jul-08 9:51 
GeneralRe: Any MultiPage Control available for Windows Form ? Pin
DaveyM6911-Jul-08 10:02
professionalDaveyM6911-Jul-08 10:02 
GeneralRe: Any MultiPage Control available for Windows Form ? Pin
Luc Pattyn11-Jul-08 10:10
sitebuilderLuc Pattyn11-Jul-08 10:10 
GeneralRe: Any MultiPage Control available for Windows Form ? Pin
Nadia Monalisa11-Jul-08 10:24
Nadia Monalisa11-Jul-08 10:24 
GeneralRe: Any MultiPage Control available for Windows Form ? Pin
Luc Pattyn11-Jul-08 10:34
sitebuilderLuc Pattyn11-Jul-08 10:34 
GeneralRe: Any MultiPage Control available for Windows Form ? Pin
Nadia Monalisa11-Jul-08 11:32
Nadia Monalisa11-Jul-08 11:32 

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.