XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Perl and XML on the Command Line
Subject: And don't forget PYX
Date: 2002-04-26 03:37:55
From: Grant McLean

Thanks Kip, I certainly picked up few handy tips
from this article.


Matt's XML::PYX is another module that provides
command line functionality. For example this one-liner prints statistics on how many times each element type occurs in a document:


pyx doc.xml | sed -n 's/^(//p' | sort | uniq -c



Previous Message Previous Message   Next Message Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938