http://www.perlmonks.org?node_id=1012991


in reply to Perl - Modify the nested XML tags

It may also be possible to express this using XSLT technology, entirely apart from Perl.   For an idea of what sort of things this technology can do, without programming, consider the interactive Periodic Table of the Elements example on the Internet.   (With your free hand, hold your lower jaw in place before you click on that link ...)   There is no programming being used to build the entire HTML of that display, and only a slight amount of JavaScript being used to respond to clicks and mouse-overs.   Your browser is the one doing all the work, on the fly, to produce what you see.   If your problem can be described as “fetch elements from an XML data source and make something else out of it,” this might be the cat’s meow.   A number of Perl libraries provide an industry standard XSLT capability, if it turns out that you need it.

Replies are listed 'Best First'.
Re^2: Perl - Modify the nested XML tags
by tobyink (Canon) on Jan 12, 2013 at 11:51 UTC

    "without programming"

    Without any programming whatsoever... apart from over 4000 lines of Javascript, and an unspecified amount (it doesn't all seem to be publicly available, so I can't count the lines) of XSLT, which is itself a Turing-complete declarative programming language.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'