etree: handle comments in xml

Change-Id: Ic51ff7360db66800a6d01c6dee5cef6f4bb7821b