W3C home > Mailing lists > Public > public-microxml@w3.org > October 2012

Re: API compatability

From: John Cowan <cowan@mercury.ccil.org>
Date: Tue, 9 Oct 2012 14:38:51 -0400
To: David Lee <David.Lee@marklogic.com>
Cc: "public-microxml (public-microxml@w3.org)" <public-microxml@w3.org>
Message-ID: <20121009183851.GG2184@mercury.ccil.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 9 October 2012 18:39:19 GMT