xmlapi file

1 view
Skip to first unread message

Lorenzo Vegetti

unread,
Oct 21, 2009, 6:46:50 AM10/21/09
to QxTransformer
Quick question:
Where did you find or how did you create the xmlapi-0.8.2.xml file?

Siarhei Barysiuk

unread,
Oct 21, 2009, 7:30:13 AM10/21/09
to qxtran...@googlegroups.com
Hi Lorenzo,

I changed generator a bit to produce one big XML file instead of bunch
of small JSON files.
I can provide you with the changed code if you need.

Serge

Lorenzo Vegetti

unread,
Oct 22, 2009, 5:08:02 AM10/22/09
to QxTransformer
That would be very kind! Thanks!
Lorenzo

Siarhei Barysiuk

unread,
Oct 23, 2009, 4:34:41 AM10/23/09
to qxtran...@googlegroups.com
Hi Lorenzo,

It took time to figure out where I did this modification, sorry about
that. But it's really simple.

Open qooxdoo-path/tool/pylib/generator/action/ApiLoader.py and find
following lines (130-131 in qooxdoo-0.8.2 sdk):

packages = api.packagesToJsonString(docTree, "", "", "")
filetool.save(os.path.join(apiPath, "apidata.js"), packages)

That's where api data is stored to file. Add one more line to store
all data in xml format as

filetool.save(os.path.join(apiPath, "xmlapi.xml"), docTree.toXml())

That's it.

Let me know if you have any problems.

Serge
Reply all
Reply to author
Forward
0 new messages