4 property bool xmlTest: false
5 property bool dataOK: false
7 function checkXML(document)
9 if (document.xmlVersion != "1.0")
12 if (document.xmlEncoding != "UTF-8")
15 if (document.xmlStandalone != true)
18 if (document.documentElement == null)
21 if (document.nodeName != "#document")
24 if (document.nodeValue != null)
27 if (document.parentNode != null)
30 // ### Test other node properties
31 // ### test encoding (what is a valid qt encoding?)
35 Component.onCompleted: {
36 var x = new XMLHttpRequest;
38 x.open("GET", "document.xml");
41 x.onreadystatechange = function() {
42 if (x.readyState == XMLHttpRequest.DONE) {
46 if (x.responseXML != null)
47 checkXML(x.responseXML);