Hey there,
Am trying to read the contents of a XML using tags. I uses read Text file to read the XML and Deserialized it into a XDocument.
Then, I tried to read the Attribute as
"ClinicalDocument: "+xmlDoc.Element(“ClinicalDocument”).Attribute(“xmlns”).Value
where am trying the read the attitubute value of “xmlns”. Attached Screenshot of XML for ref.
I get an Null Reference Error for this. Can anyone pls help me to sort out the issue.
Regards,
Nithin