From: merlyn stonehenge.com
> >>>>> "manoj" == manoj mitra
<manoj_mitra2001 yahoo.com> writes:
>
> manoj> I want to learning about "different XML
parsers". Can any body
> provide manoj> me such web tutorial links.
>
> In the context of Perl, there are really only three
families:
> The modern modules are based on XML::LibXML, which
wraps the GNOME
> xml2 lib. The classic modules are based on XML::Parser,
which wraps
> the expat lib. And there are a few that are pure Perl,
with a whole
> host of caveats.
>
> That's the main differences... did you have a specific
question?
Well ... in a way this is the main difference. Though I
don't think
it's the difference that matters for most people. IMHO the
more
important difference is the difference in usage, the
different
interfaces and even styles.
There are the parsers (well ... modules that allow you to
work with
XML, possibly built on top on a different such module built
on top of
an external library built ...) that slurp the whole file
into
something that is or appears to be a Perl data structure
(XML::Simple, XML::All, ...), modules that slurp the XML and
create a
maze of interconnected objects (XML::LibXML, XML: OM,
XML::Elemental, ...), modules that let you process the XML
in pieces
as it's being parsed (XML::Parser, XML::Parser::Expat,
XML::SAX,
XML::LibXML::SAX, ...) and modules that somehow compine the
styles
(XML::Twig, XML::Rules, ...).
Which module to use depends on the preference of the
developer and
the task at hand ... what library is it based on is IMHO a
secondary
concern.
Jenda
P.S.: I've probably forgot to include some important and
commonly
used modules and included some that are dead,
never-been-completed
and not-to-be-used.
===== Jenda Krynicky.cz === http://Jenda.Krynicky.cz
=====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/perl-beginner/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http
://groups.yahoo.com/group/perl-beginner/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-beginner-digest@yahoogroups.com
mailto:perl-beginner-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
perl-beginner-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|