Update examples-xml.md

Improve getData example.