use path instead of xml string