Re: API compatability

David Lee scripsit:

> Say I had a MicroXML "SAX-Like" parser and wanted to bridge it to a
> XML SAX parser ...
>
> Is this reasonable and possible ?  I believe the loose goal of Data
> Model Compatibility would accommodate (but not guarantee) this.

I see no problem with it.  You just need a shim that will accept MicroXML
events and generate the corresponding SAX events.

> Might it be worth an additional spec,  and pre-consideration, as
> to what it would take to map the MicroXML Data Model to the XDM ?
> or equivalently (but more concretely) a particular MicroXML Parser to
> a XML Parser ?  that is, what would it take to wrap a Micro XML Parser
> API to an XML Parser API ...  I believe the intentions are that this
> would be trivial.  but does the spec require or facilitate it ?

In order to have that, we should put some effort into designing a parser
spec.  See <http://www.w3.org/community/microxml/wiki/MicroLarkApi>
for my current shot at it, and remember that it is SAX+StAX+DOM.

-- 
John Cowan <cowan@ccil.org>             http://www.ccil.org/~cowan
It's like if you meet an really old, really rich guy covered in liver
spots and breathing with an oxygen tank, and you say, "I want to be
rich, too, so I'm going to start walking with a cane and I'm going to
act crotchety and I'm going to get liver disease. --Wil Shipley

Received on Tuesday, 9 October 2012 18:39:18 UTC