Hi all,
I need to use XML to store some log data and then query that data. I'm
struggling with the right terminology, which is hindering my ability to
successfully search for a solution. Thanks in advance for your help!
Two questions:
1. In VB.NET, how can I append new "Log" record to a "Site" record?
2. How can I query all of "Log" records in a single "Site" for an average
"ResponseTime"?
------------------------------
<?xml version="1.0" standalone="yes" ?>
<Sites>
<Site Host="www.mysite1.com" IP="1.1.1.1" />
<Site Host="www.mysite2.com" IP="1.1.1.2" />
<Site Host="www.mysite3.com" IP="1.1.1.3">
<Log Time="1/1/2008 12:00:00 AM" Status="Success" ResponseTime="10" />
<Log Time="1/1/2008 12:00:01 AM" Status="Failure" ResponseTime="10" />
</Site>
<Site Host="www.mysite4.com" IP="1.1.1.4">
<Log Time="1/1/2008 12:00:00 AM" Status="Success" ResponseTime="10" />
<Log Time="1/1/2008 12:00:01 AM" Status="Failure" ResponseTime="10" />
</Site>
</Sites>