J
Julia
Strategy to read part of XML log file
Hi,
My log file will contains entries formatted as XML(i use this format since
some time i would like to log entire objects)
I am going to use FileSystemWatcher in order to detect when changes occur
to the file
and now I am facing a problem reading the last added node
I came to the following strategy:
when a new entry will be added i will set a numeric value in it's attribute
<Entry id="100">
Message
</Entry>
<Entry id="101">
Message
</Entry>
Since I know what was the last entry read by my log viewer i can
know excalty what entries should be read
My question is do i have some API which support searching or getting part
of XML document without retriveing it to memory first?
Thanks in advance.
Hi,
My log file will contains entries formatted as XML(i use this format since
some time i would like to log entire objects)
I am going to use FileSystemWatcher in order to detect when changes occur
to the file
and now I am facing a problem reading the last added node
I came to the following strategy:
when a new entry will be added i will set a numeric value in it's attribute
<Entry id="100">
Message
</Entry>
<Entry id="101">
Message
</Entry>
Since I know what was the last entry read by my log viewer i can
know excalty what entries should be read
My question is do i have some API which support searching or getting part
of XML document without retriveing it to memory first?
Thanks in advance.