Hi there,
I have a database (videoos_transact) with a table (GenericXmlInfo) which contains a column called 'Xml'.
This contains information such as
How would I construct a query only to pull out the 'Object Name' ie AY03AAU and the TimeStamp ie "2010-11-04T06:37:57.27+00:00" (but shown as "2010-11-04 6:37:57"
I have a database (videoos_transact) with a table (GenericXmlInfo) which contains a column called 'Xml'.
This contains information such as
Code:
<Alert xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/Alert.xsd" ID="0" TimeStamp="2010-11-04T06:37:57.27+00:00" Name="Plate AY03AAU" Type="0">
<Source>
<Server GUID="2d68a369-2af3-4ad4-b098-92732d70137e" Name="http://localhost">
<Description>LPR Server</Description>
</Server>
<Device GUID="B6017215-42A3-4111-8B5E-0B517BAA043E" Name="Camera 1">
<Location Name="In Barrier" />
</Device>
</Source>
<Rule Name="Unregistered Plates" Type="Unregistered Plates" />
<Object Name="AY03AAU" Type="License Plate" Confidence="999">
<Polygon>
<Point X="617" Y="84" />
<Point X="773" Y="74" />
<Point X="774" Y="103" />
<Point X="618" Y="112" />
<Color R="255" G="0" B="0" A="255" />
</Polygon>
</Object>
<Description>License Plate Detected. Country: GB. Confidence: 999.</Description>
<Vendor Name="Dacolian" />
</Alert>
How would I construct a query only to pull out the 'Object Name' ie AY03AAU and the TimeStamp ie "2010-11-04T06:37:57.27+00:00" (but shown as "2010-11-04 6:37:57"