Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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.

Replies are listed 'Best First'.
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?
[Corion]: Yay, vacation time now - one week off work (but a Perl workshop in the middle ;)) )
[talexb]: TStanley I just realized that I was in your area for a convention back in April. We were at the high school for the weekend, the one with the long driveway. Nice spot.
[TStanley]: I am heading to Arlington, Virginia next week, then I get to spend an entire week at home. Looking forward to that as I will have spent 7 weeks on the road by the end of next week
[talexb]: That's a long road trip. I haven't travelled for business in years.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-06-23 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (548 votes). Check out past polls.