Read xml file in QML
-
You need to use C++ for that.
-
[quote author="athavan" date="1396438365"]thank u for rply.. can you give some example for that...[/quote]
I could, but the documentation already has all the data. See "this":http://qt-project.org/doc/qt-5/xml-streaming.html, "this":http://qt-project.org/doc/qt-5/qdomdocument.html.
-
No. QML does not have an API for modifying XML files. You need to use C++ for that (or some external JS library).
-
Using contextProperty() you can easily connect C++ class inside QML files. Call the C++ functions for read/write XML files.
check this, http://qt-project.org/doc/qt-5/qqmlcontext.html#setContextProperty