Differences

This shows you the differences between the selected revisions of the page.

2014-03-07 2014-09-11
old revision restored (martin) in-page anchored links without page name (martin)
Line 60: Line 60:
</code> </code>
-Note that before you can safely start reading and parsing the XML log file using tree-based parser (such as ''[[dotnet>system.xml.xmldocument|XmlDocument]]'' or ''[[dotnet>system.xml.xpath.xpathdocument|XPathDocument]]''), you need to [[guide_dotnet#exit|wait for WinSCP to finish]]. See example below.+Note that before you can safely start reading and parsing the XML log file using tree-based parser (such as ''[[dotnet>system.xml.xmldocument|XmlDocument]]'' or ''[[dotnet>system.xml.xpath.xpathdocument|XPathDocument]]''), you need to [[#exit|wait for WinSCP to finish]]. See example below.
If you need to read the log file continuously, you need to use stream-based parser (such as ''[[dotnet>system.xml.xmlreader|XmlReader]]''). See [[guide_interpreting_xml_log#continuous|example]]. If you need to read the log file continuously, you need to use stream-based parser (such as ''[[dotnet>system.xml.xmlreader|XmlReader]]''). See [[guide_interpreting_xml_log#continuous|example]].
Line 98: Line 98:
Use ''[[dotnet>system.diagnostics.process.waitforexit|Process.WaitForExit]]'' to wait for WinSCP process to finish. Use ''[[dotnet>system.diagnostics.process.waitforexit|Process.WaitForExit]]'' to wait for WinSCP process to finish.
-If you have output stream redirected, you need to first [[guide_dotnet#output|read the output stream to the end]].+If you have output stream redirected, you need to first [[#output|read the output stream to the end]].
A good practice is to close input stream too, if you have it redirected. A good practice is to close input stream too, if you have it redirected.

Last modified: by martin