generate R from ED
read XML with namespace