return io.Reader value along with map or doc

Make the []byte value parsed to map[string]interface{} or XML doc
available to the caller, too.