XML question

It looks like there isn’t much hope for a nice way to call xpath commands, such as sum. Has anyone ever gotten this to work at all? This would save me immense amounts of time. Thanks ya’ll.