xml - How do I compare attribute to a lower case value? -
how create filter attribute value lowercase?
this works:
xmlitem = xml.*.(attribute("name")==propertyname);
but throwing error:
xmlitem = xml.*.(attribute("name").tolowercase()==propertyname);
it looks have use tostring() string object , can use tolowercase():
var xmllist:xmllist = xml.*.(attribute("name").tostring().tolowercase()==lowercasepropertyname);
Comments
Post a Comment