Hi Kay,

On Wed, Sep 14, 2005 at 11:29:10 +0200, Kay Ramme - Sun Germany - Hamburg wrote:

> I agree, and would even go a step further. As we know the concrete 
> format of our XML files in advance (the OpenDocument format), we could 
> create a specialized parser (maybe with lex and yacc, or friends) and 
> use a specialized API (not SAX anymore) to parse the ODF files.

Just to add to the thread what we already talked about:

A specialized parser could almost certainly be faster than the general
SAX parser passing strings back and forth. I wouldn't do it with
lex/yacc though, they're a nightmare to maintain, and in case wrong code
was generated, which can happen, you're almost lost. I'd prefer
boost::spirit instead, but it might be even more work to implement the
parser. I've no idea though whether boost::spirit would be suitable to
parse an ODF tree.

  Eike

-- 
 OOo/SO Calc core developer. Number formatter bedevilled I18N transpositionizer.
 GnuPG key 0x293C05FD:  997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to