[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XMLOut - generating xml from programs
Original Message From: "Liam R E Quin" > On Tue, 2011-08-23 at 02:46 +0300, Manos Batsis wrote: > >> FWIW, WAX is a fantastic API for writing XML, I liked it so much i did >> the JS implementation. >> >> http://java.ociweb.com/mark/programming/WAX.html > > Thank you for that! I'm definitely in favour of promoting solutions that > already exist, and wax does look promising. The JS version at least > looks like it, too, is jquery-influenced. We've ended up re-inventing something similar to WAX to generate XML in our C++ data binding tool and it works very well. Our implementation is simpler, without the DTD and namespace support. As such it comes down to the order of dozens of lines to implement. If I were to change WAX, I would remove the close() method and insist that the end() named the element it was closing. e.g. instead of: wax.start("car").text("Prius").end().close(); You'd have: altWax.start("car").text("Prius").end("car"); That way the stack is checking that the programmer hasn't got confused about where they are or anything, which is so easy to do when writing this type of code. HTH, Pete Cordell Codalogic Ltd Interface XML to C++ the easy way using C++ XML data binding to convert XSD schemas to C++ classes. Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com for more info
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|