Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Perl - Modify the nested XML tags

by sundialsvc4 (Abbot)
on Jan 11, 2013 at 22:26 UTC ( #1012991=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Perl - Modify the nested XML tags
Re^2: Perl - Modify the nested XML tags
by tobyink (Abbot) 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'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012991]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2014-10-01 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (36 votes), past polls