I have an xml as shown:
<?xml version="1.0" encoding="utf-8"?>
<Query_advanced>
<Query>hy</Query>
<Attribute Name1="Patient's Age" Value1="23" xmlns="xyz"/>
<Attribute Name1="Patient's Birth Date" Value1="24/12/1988" xmlns="xyz"/>
<Attribute Name1="Patient's Name" Value1="xyz" xmlns="xyz" />
</Query_advanced>
I need to read through the xml to get the values of Name1 and of Value1, but im unable to do so with the xmlns there. Is there any way i could do so? Ive tried using:
XmlNamespaceManager xnm = new XmlNamespaceManager(xdoc.NameTable);
xnm.RemoveNamespace("Attribute", "xyz");
THanks for all your suggestions! I managed to do it this way:
private void QueryXML()
{
}
Thanks a bunch! 🙂