How to chk the Node in XML is Null and insert a value

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have string i need to load it as xmldoc
The code i wrote in c# is:
string strData = "<Data><Select name="TPTP" type="Row <Column name="_Clss Demo</Column><Column name="_Lib Demo.dll</Column><Column name="_Mod 1</Column><Column name="_Func 1</Column> <Column
name=HE_ID 000001</Column> <Column name="LOCK 1</Column><Column name="PTPR_ 0:00:00.200</Column>
</Select>
<Select name="TPTP" type="Row
<Column name="_Clss Demo</Column><Column name="_Lib Demo.dll</Column><Column name="_Mod 1</Column><Column name="_Func 1</Column> <Column name=HE_ID 000002</Column> <Column
name="LOCK 1</Column><Column name="PTPR_ 0:00:00.200</Column>
</Select>
<Select name="TPTP" type="Row
<Column name="_Clss Demo</Column><Column name="_Lib Demo.dll</Column><Column name="_Mod 1</Column><Column name="_Func 1</Column> <Column name=HE_ID </Column> <Column
name="LOCK 1</Column><Column name="PTPR_ 0:00:00.200</Column>
</Select>
</Data>";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(strData);
after loading the the xml i need to chk for the HE_ID is null and then insert a value can any one send me the code Please?
<hr class="sig rajunarender

View the full article
 
Back
Top