[MTOS-dev] XML parsing

David Jacobs djacobs at apperceptive.com
Mon Mar 10 18:43:46 PDT 2008


In our experience Expat is hard and installing the rest of the XML::*
is pretty easy. And I believe (but I may be wrong) that libxml2/Expat
is a solution that will outperform pure perl. This is important becaue
eventually our work will be more XML than HTML (if it's not alread).

In short, I think that we should require more things if that means
better performance. I may be totally wrong!

David


On 3/10/08, Timothy Appnel <tim at appnel.com> wrote:
> On 3/7/08, Byrne Reese <byrne at sixapart.com> wrote:
>
>  > I remember pushing hard for this as well especially because WordPress WXR
>  >  files can become quite larger and a DOM parser requires you to parse the
>  >  whole document in memory before you can even access its contents.
>
>
> When you know you are definitely working with a smallish document then
>  the DOM is fine. Personally I think the DOM is too fine-grain and
>  verbose, but that is probably because I'm used to Perl and its
>  shorthands and regex goodness. (This is probably why I prefer XPath
>  and to a certain extent XML::Simple.)
>
>  So where does this leave us in this discussion?
>
>
>  <tim/>
>
>  --
>  Timothy Appnel
>  Appnel Solutions
>  http://appnel.com/
>  _______________________________________________
>
> MTOS-dev mailing list
>  MTOS-dev at sixapart.com
>  http://www.sixapart.com/mailman/listinfo/mtos-dev
>


-- 
David Jacobs
http://Apperceptive.com
917 450 0533


More information about the MTOS-dev mailing list