This is my XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Computer Name="WH7" Processior="Intel(R) Core(TM)2 Duo CPU P9600 @ 2.66GHz"
Manufacturer="Dell Inc." Model="Latitude E6500" Domain="WORKGROUP"
RAM="3536 MB" ServiceTag="DGQKTJ1">
<BIOS Manufacturer="Dell Inc." Version="Phoenix ROM BIOS PLUS Version 1.10 A19"/>
</Computer>
I want to save root node (i.e <Computer>
) attribute values and subnode values (i.e BIOS
) into Asset
table below.
Create Table Asset
(
AssetId int Identity(100, 1),
Name varchar(50),
Processor varchar(50),
Manufacturer varchar(100),
Model varchar(100),
Domain varchar(100),
RAM varchar(100),
ServiceTag varchar(100),
Version varchar(100)
)
Anyone please help me.