<br/>
How do I check if an element that have Attribute with matching Value EXIST or NOT in XDocument??
I know the following code get the value of Attribute.
<p style="margin-bottom:0.0001pt; line-height:normal <span style="font-size:9.5pt; font-family:Consolas Xdoc.Element(<span style="color:#a31515 "Option" ).Element(<span style="color:#a31515 "Group" ).Attribute(<span style="color:#a31515 "Name"
).Value)
But How do I check if element âGroupâ<span> with Attribute ânameâ, with value âOptMainâ exist in the XDocument?
The following is the layout of the XML Document
<?xml version="1.0" encoding="utf-8"?>
<Option>
<span> <Group Name="OptMain
<span> <Item Name="Opt1Name Opt1Value</Item>
<span> <Item Name="Opt2Name Opt2Value</Item>
<span> <Item Name="opt3Name Opt3Value</Item>
<span> </Group>
</Option>
View the full article
How do I check if an element that have Attribute with matching Value EXIST or NOT in XDocument??
I know the following code get the value of Attribute.
<p style="margin-bottom:0.0001pt; line-height:normal <span style="font-size:9.5pt; font-family:Consolas Xdoc.Element(<span style="color:#a31515 "Option" ).Element(<span style="color:#a31515 "Group" ).Attribute(<span style="color:#a31515 "Name"
).Value)
But How do I check if element âGroupâ<span> with Attribute ânameâ, with value âOptMainâ exist in the XDocument?
The following is the layout of the XML Document
<?xml version="1.0" encoding="utf-8"?>
<Option>
<span> <Group Name="OptMain
<span> <Item Name="Opt1Name Opt1Value</Item>
<span> <Item Name="Opt2Name Opt2Value</Item>
<span> <Item Name="opt3Name Opt3Value</Item>
<span> </Group>
</Option>
View the full article