Writing into a txt file from XmlNodeList in C#

pcmand

New Member
Is it possible to write every element from an XmlNodeList into a .txt file and how would it be done. No parsing is necessary, I just want to write it into a txt file. I'm trying to accomplish it with StramWriter but so far no luck. For now, I do this by creating a string that holds the node (it's inner XML + opening and closing tag) but since I have a large number of nodes to go trough, this is very slow.
 
Back
Top