Get Attribute from XML element

129 Views Asked by At

At the moment we are trying to get the Innertext from a XMLElement where the attribute is EAN. The only problem is that the XMLElements have the attribute name dt:dt, which can't be found.

We have an XML Schema for this, but how can we import this schema?

<custom-attribute dt:dt="string" name="EAN">8152210266584</custom-attribute>

We want the EAN code inside this XMLElement.

And the structure is

Product -> Custom-attributes -> Custom-attribute

We have tried to use SelectSingleNodes and LINQ but they only show the elements where there is no dt:dt attribute

0

There are 0 best solutions below