implemented xml export support