Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Will regex work here?

by aardvark (Pilgrim)
on Apr 25, 2001 at 02:04 UTC ( #75285=note: print w/replies, xml ) Need Help??

in reply to Will regex work here?

Since you are only interested in certain nodes I'd look at mirod's XML::Twig. I'm trying to learn it myself but it sounds like it should do what you want. There is a tutorial for XML::Twig here

I think you can also do something like this using an XSL Transformation. It sounds like you want to transform your old XML into a new XML document, based on the value of the DATE attribute. To do this you need a stylesheet and a transformation engine. There are many XSLT engines out there, you can use AxKit for an all-Perl solution or Xalan for a Java/Apache solution. There are many more that you can find here. I've been reading XSLT: Programmer's Reference for help on XSLT. It is really interesting stuff, but I'd look to XML::Twig and AxKit to help you get your job done today. When you have some time look at the other stuff.

I hope this helps.

Get Strong Together!!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75285]
[talexb]: Nice article on Perl by Ovid on TechBeacon: https://techbeacon .com/perl-not-dead -it-was-early-web- novices-gave-it- bad-name
[choroba]: that's from the last year, right?
[choroba]: Pretty similar to his talk at YAPC::EU 2016

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-09-19 18:01 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (226 votes). Check out past polls.