XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] 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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS