I want to pass the results which stored in javascript var from the main.qml to the writeXML.cpp.
I can see the count, the searchitems are fetched and want to write in XML format.

How can I achieve this.

Code snippet:

var varResultArray;

varResultArray = idPortalSearchItems.results[1];

Query:

How Can I pass it by Javascript var Ex:
objHomeController.eveWriteXMLFile(varResultArray ); //Passing an Js variable


writeXML.h
------------

What will be the datatype of the argument of the method?
Ex:
Q_INVOKABLE bool eveWriteXMLFile(??????? varResultArray ); //What will be the datatype?




Thanks In advance.