decode from xml