C# parse xml with name space






<?xml version="1.0" encoding="utf-8"?>
<DeploymentReport xmlns="http://ift.tt/1hSBrzS">
<Alerts />
<Operations>
<Operation Name="Create">
<Item Value="[dbo].[T1]" Type="SqlTable" />
<Item Value="[dbo].[DF_C2]" Type="SqlDefaultConstraint" />
<Item Value="[dbo].[TR1]" Type="SqlDmlTrigger" />
<Item Value="[dbo].[V1]" Type="SqlView" />
</Operation>
<Operation Name="Alter">
<Item Value="[dbo].[P1]" Type="SqlProcedure" />
</Operation>
</Operations>
</DeploymentReport>



I cant figure out how to parse this xml. I need to get the: 1. Operation Name that can be "Create" or "Alter" etc 2. Item Value and Type


Thanks a lot -Yaniv


No comments:

Post a Comment