Extract usage from xml