Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How a XmlNode is added to the file?

Status
Not open for further replies.

juhaka

Programmer
Nov 14, 2002
26
FI
Hi!

How can I add a single node to the end of an existing file? I have a log writing component, where a new log event(XmlNode) is added to the log(XmlDocument) and then the log is written to the file. But this is too heavy way, because the size of the log can raise up to MBs and new log events raise very often in short time. So, I should add only the latest log event (XmlNode) to the file, shouldn't I???

br. Juha Ka
 
Because of the size problem (which you've discovered), I'd say that an XML file would be the wrong way to implement a log. I'd use an ordinary text file for this, with tab-delimiters to separate the fields. Or write to a database, or a MSMQ that had a listener that wrote the info for you to a file or database.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top