How do you actually use the life_selector.xml file? Here is a minimal Python engine to parse it.
An informative piece on a "life selector XML" typically refers to the Android Lifecycle-aware Selector or general StateListDrawable life selector xml