[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XMLOut - generating xml from programs

  • From: "Pete Cordell" <petexmldev@codalogic.com>
  • To: <liam@w3.org>,"Manos Batsis" <manos_lists@g...>
  • Date: Tue, 23 Aug 2011 09:19:50 +0100

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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.