You can always do that in the C++ part of your QML application.

For displaying data of an XML file you can also use XmlListModel.

Cheers,
_