Function extractStateFlags

converts XML attribute name to State (see http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)

void extractStateFlags(
  dxml.dom.DOMEntity!(string) item,
  ref uint stateMask,
  ref uint stateValue
);