So I'm trying to retrieve some values from attributes in an XML element but have trouble with the ':'.
<Vehicle xmlns:qs="urn:quote-sys-private-data" qs:Make="ALFA ROMEO" qs:Body="Convertible" qs:NumberOfDoors="2" qs:Fuel="Petrol" qs:TransmissionType="Manual">
I need to get the Make, Body, NumberOfDoors, Fuel and TransmissionType.
Error I get when trying to do the following:
vehicleNode.Element("Vehicle_Model").Attribute("Val").Value,
is,
The ':' character, hexadecimal value 0x3A, cannot be included in a name
vehicleNode is an XElement.
To my knowledge, this is not the same issue as here as this has the <ab:test>
as an element and not an attribute on an element.
Can anyone help?
Thanks!