In article <43f45c07$0$82661$ed2619ec@ptn-nntp-reader03.plus.net>,
bugbear <bugbear@trim_papermule.co.uk_trim> wrote:
[color=blue]
> I need to do some fairly simple processing
> of XML files; I would like to be able to do this
> in perl.
>
> However, the XML I'm handling uses namespaces.
>
> In practice, the tags do not overlap,
> so I could achieve the functionality I need
> by simply stripping namespace information.
>
> Question: what XML parsers, callable from perl
> support namespaces (either properly, or by
> carefully ignoring them)?
>
> And, of these, which (if any) of them do not require
> compilation to install (i.e. which are "pure" perl).
>
> The reason for the latter restriction is ease
> of installation on some nasty, obscure, old
> hardware (don't ask, you DON'T want to know ;-)[/color]
There is XML::SAX::PurePerl, which is slow, and I do not know if it
handles namespaces. According to its documentation, XML::SAX will use
XML::SAX::PurePerl if nothing else if available, and XML::Simple will
use XML::SAX for a parser if XML::Parser is not available. Confusing,
no?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com