I have an xml file with the attribute style inside the resultset
<resultset statement="select adtext from ad where adCategoryID=3 order by adinsertdate desc limit 100" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" style="cars">
The value of the attribute may vary in different xml files, so I would like to get the value of the attribute and apply the corresponding styling to my xml, according to this value.
However no matter what variations I try in this statement:
if(myTemplate.XMLElement.XMLAttributes.itemByName("style").value == "cars"){//...}
I get the following message:
"Object does not support the property or method 'XMLElement'.
Any help will be appreciated.