wow! Thank you Toni! This really amazing! On Fri, Feb 24, 2012 at 3:03 PM, Toni Alatalo <[email protected]> wrote:
> On Fri, 2012-02-24 at 14:44 -0500, 赵柏萱 wrote: > > Thank you for the detailed reply! > > I made a quick / test example that should get you going: > > https://github.com/realXtend/naali/blob/tundra2/bin/jsmodules/apitest/qtxml.js > > Can run with: > ./Tundra --headless --run jsmodules/apitest/qtxml.js > > it walks the xml doc and prints tags. is made to run from the Tundra bin > directory (or the root in release) as expects the plugins.xml to be > there. > > ~Toni > > > On Fri, Feb 24, 2012 at 2:27 PM, Toni Alatalo <[email protected]> > > wrote: > > On Fri, 2012-02-24 at 10:37 -0800, Zhao Boxuan wrote: > > > I'm going to make a demo using realXtend tundra, and there > > are some > > > > > > Cool! > > > > > xml files to parse. I try to use " new > > > ActiveXObject('Microsoft.XMLDOM') " to do the parse job but > > it seems > > > that the parser is not supported in the tundra JavaSript > > environment. > > > > > > Heh, no that certainly is not expected to work out of the box. > > I don't > > know what API that actually is even. Browsers which have > > active-x > > support, any browser on Windows perhaps? > > > > > Could anyone tell me if there's any tools I can use to parse > > the XML > > > files? > > > > > > Tundra itself uses Qt XML, and that is I think available to > > Javascript > > (QtScript) too. The qt.xml extension. > > > > I can make a test / little demo later, have never actually > > used that yet > > (but it does seem nice on the c++ side with the XML > > DocumentObjects or > > so). > > > > I think the same ImportExtension thing that's used to load > > qt.core and > > qt.gui in the examples in e.g. scenes/ dir should work for > > that too, and > > then the Qt API docs (for c++ but the API is the same) should > > tell how > > it works. > > > > It is also possible to use pure Javascript libraries, if for > > example > > JQuery has nice XML tools, but that Qt XML is native c++ code > > so should > > be fast and I think nice too. > > > > ~Toni > > > > P.S. I think we have the ActiveX support enabled in Qt too > > ('ActiveQt'), > > so if that's needed for something else it's possible to use > > too. Not > > needed for XML, but I think e.g. Flash works that way. (on > > windows when > > Flash active-x plugin installed) > > > > -- > > http://groups.google.com/group/realxtend > > http://www.realxtend.org > > > > > > > > -- > > http://groups.google.com/group/realxtend > > http://www.realxtend.org > > > -- > http://groups.google.com/group/realxtend > http://www.realxtend.org > -- http://groups.google.com/group/realxtend http://www.realxtend.org
