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

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -