Re: [qooxdoo-devel] qx reading data from xml file

2015-12-23 Thread Dietrich Streifert
Hi Peter, did you re-generate your app using generate.py source Usually the class loader only loads those classes needed. If you use some new classes (I suspect qx.xm.Element is new in your code) after you call generate.py, the qx loader is not aware of that class, thus not loading it.

Re: [qooxdoo-devel] qx reading data from xml file

2015-12-23 Thread Peter
Peter bst-international.com> writes: > > Hi Dietrich, > > thanks for that. > qx.xml.Document.isXmlDocument(xmlDocument); gives a true now > > But now I stick at reading the data. >qx.xml.Element.selectNodes(xmlDocument, '//'); > ends up in a >Cannot read property 'selectNodes' of unde

Re: [qooxdoo-devel] qx reading data from xml file

2015-12-23 Thread Peter
Hi Dietrich, thanks for that. qx.xml.Document.isXmlDocument(xmlDocument); gives a true now But now I stick at reading the data. qx.xml.Element.selectNodes(xmlDocument, '//'); ends up in a Cannot read property 'selectNodes' of undefined why 'undefined' any ideas ? thanks Peter ---

Re: [qooxdoo-devel] qx reading data from xml file

2015-12-22 Thread Dietrich Streifert
Hi Peter, try this: var req = new qx.io.request.Xhr('my.xml'); req.addListener('success', function(e) { var xmlFile = e.getTarget().getResponse(); var xmlDocument = qx.xml.Document.fromString(xmlFile); }, this); req.send(); xmlDocument should contain the dom t

[qooxdoo-devel] qx reading data from xml file

2015-12-22 Thread Greve, Peter
Hey, I've just started using qx and now fighting with the handling of a xml file. So I'd like to read some data out of an existing xml file. Sounds very simple, but I can not find the right handle. What to do ? I tried var req = new qx.io.request.Xhr('my.xml'); req.addListener('success'