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
"ResponseTi me"?
------------------------------
<?xml version="1.0" standalone="yes " ?>
<Sites>
<Site Host="www.mysit e1.com" IP="1.1.1.1" />
<Site Host="www.mysit e2.com" IP="1.1.1.2" />
<Site Host="www.mysit e3.com" IP="1.1.1.3">
<Log Time="1/1/2008 12:00:00 AM" Status="Success " ResponseTime="1 0" />
<Log Time="1/1/2008 12:00:01 AM" Status="Failure " ResponseTime="1 0" />
</Site>
<Site Host="www.mysit e4.com" IP="1.1.1.4">
<Log Time="1/1/2008 12:00:00 AM" Status="Success " ResponseTime="1 0" />
<Log Time="1/1/2008 12:00:01 AM" Status="Failure " ResponseTime="1 0" />
</Site>
</Sites>
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
"ResponseTi me"?
------------------------------
<?xml version="1.0" standalone="yes " ?>
<Sites>
<Site Host="www.mysit e1.com" IP="1.1.1.1" />
<Site Host="www.mysit e2.com" IP="1.1.1.2" />
<Site Host="www.mysit e3.com" IP="1.1.1.3">
<Log Time="1/1/2008 12:00:00 AM" Status="Success " ResponseTime="1 0" />
<Log Time="1/1/2008 12:00:01 AM" Status="Failure " ResponseTime="1 0" />
</Site>
<Site Host="www.mysit e4.com" IP="1.1.1.4">
<Log Time="1/1/2008 12:00:00 AM" Status="Success " ResponseTime="1 0" />
<Log Time="1/1/2008 12:00:01 AM" Status="Failure " ResponseTime="1 0" />
</Site>
</Sites>
Comment