ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: What's So Great about SAX? (ie. Future Indecisions)
by Robin Berjon other posts by this author
Oct 8 2002 9:11AM messages near this date
view in the new Beta List Site
RE: What's So Great about SAX? (ie. Future Indecisions) | RE: What's So Great about SAX? (ie. Future Indecisions)
Grant McLean wrote:
>  The way I'd see that working with SAX is something like:
>  
>    use XML::SAX::Machines qw( :all );
>    use XML::Filter::NSNormalise;
>    use XML::Simple;
>  
>    my $p = Pipeline(
>      XML::Filter::NSNormalise->new(
>        map => { 
>          'http://purl.org/dc/elements/1.1/' => 'dc',
>          'http://purl.org/rss/1.0/modules/syndication/' => 'syn'
>        }
>      )
>      => XML::Simple->new(
>        keyattr => {}
>      )
>    );
>  
>    my $ref = $p->parse_uri('./rss.xml');
>  
>  An off-the-cuff version of XML::Filter::NSNormalise is attached.

That's a very useful filter, you should definitely release it to CPAN. I 
see mostly one reason to prefer clarkian notation over normalisation, 
it's an ugly reason but it's unfortunately a real one: QNames in 
content. That filter won't be able to update it.

It's really cool that XML::Simple is going to have clarkian keys, given 
that I always have several namespaces around that was my main reason for 
not using it much.

-- 
Robin Berjon <robin.berjon@[...].fr> 
Research Engineer, Expway
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Grant McLean
Robin Berjon

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved