Webhotline IP SYSCON schrieb: > > Hello, > > > *i am now working for a week with qooxdoo (0.7.2) and my little > application communicates with Java Backend (SOAP) in XML. I was > successfull in making request with the qooxdoo objects and i´m > only suffering from one problem. There is a no example how to > use the API Element qx.xml.Element with its methods. Some of the > methods work with Xpath query (selectNodes) (i´ve never worked > before with it) .* > > > *So my question is, if there is a description how to parse xml > oder how to use these objects efficently?* >
Hi Nico, we have unit tests for the XML stuff. You can take the source code of the tests as guideline how to use the XML functionality. frontend/application/testrunner/source/class/testrunner/test/Xml.js Best Fabian > > *It would rather be nice if anyone could help me before i get > nuts...* > > > *I post an example XML here:* > > > *(XML to parse)* > > > *<soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">* > > > * <soapenv:Body>* > > > * <ns:getDatabaseConnectResponse > xmlns:ns="http://detect.service.myclasses/xsd">* > > > * <ns:return>* > > > * <alias xmlns="http://proxool.connect.myclasses/xsd">alb</alias>* > > > * <driverClass > > xmlns="http://proxool.connect.myclasses/xsd">com.microsoft.sqlserver.jdbc.SQLServerDriver</driverClass>* > > > * <driverUrl > > xmlns="http://proxool.connect.myclasses/xsd">jdbc:sqlserver://192.168.164.134:1433;DatabaseName=Databasename</driverUrl>* > > > * <maxConnects > xmlns="http://proxool.connect.myclasses/xsd">10</maxConnects>* > > > * <properties xmlns="http://proxool.connect.myclasses/xsd">* > > > * <encrypt>false</encrypt>* > > > * <name>user</name>* > > > * <value>username</value>* > > > * </properties>* > > > * <properties xmlns="http://proxool.connect.myclasses/xsd">* > > > * <encrypt>false</encrypt>* > > > * <name>password</name>* > > > * <value>passw</value>* > > > * </properties>* > > > * <validationQuery > xmlns="http://proxool.connect.myclasses/xsd">select > getdate()</validationQuery>* > > > * </ns:return>* > > > * </ns:getDatabaseConnectResponse>* > > > * </soapenv:Body>* > > > *</soapenv:Envelope>* > > > *I tried it with source code like this but i only gained access > to the note “ns:return” but not to the children underneath.* > > > *...* > > > *var contdb = e.getContent();* > > > * var xy = > > qx.xml.Element.getElementsByTagNameNS(contdb,"http://proxool.connect.myclasses/xsd","return");* > > > * // xy cotains every node element (return) * > > > * * > > > * // Try to catch the node "alias" underneath return * > > > * var it = qx.xml.Element.getSingleNodeText(xy[0],"/alias");* > > > * var searchNow = qx.xml.Element.getText(it); * > > > *...* > > > * * > > > *I hope someone can help me.* > > > *Greetings,* > > > *Nico* > > > * * > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > -- Fabian Jakobs JavaScript Framework Developer 1&1 Internet AG Brauerstraße 48 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel