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

Re: XML Parsing using perl

by sundialsvc4 (Monsignor)
on Feb 21, 2014 at 15:17 UTC ( #1075739=note: print w/ replies, xml ) Need Help??


in reply to XML Parsing using perl

Whereas I would have suggested XML::LibXML, because this gives you direct access to what, I believe, is the industry-standard library for dealing with XML.   In particular, it gives you access to XSLT, and it is positively goofy what you can do with that technology, without writing a single line of “programming” at all.   For instance, consider the famous Interactive Periodic Table of the Elements web site, which is entirely formatted by your browser, on your browser, without using any JavaScript to do or to control the formatting.   You can use XSLT to “query” your data-source to answer questions just like the one you posed.   Heck, you can even do it within a capable spreadsheet:   there are lots of clients of libxml.so.


Comment on Re: XML Parsing using perl
Re^2: XML Parsing using perl
by Jenda (Abbot) on Feb 21, 2014 at 23:07 UTC

    Writing XSLT IS programming, just like writing SQL or Prolog or Haskel is. You don't need to have to write

    step 1. do this
    step 2. do that
    step 3. while something is true repeat step 4.
    step 4. do whatever
    step 5. blah blah
    
    to be programming!

    And that page ... without JavaScript? Really? Did you look at the sources? <script type="text/javascript" language="javascript" src="tooltip/script.js"></script> is what?

    If you are used to "the industry standard" ... that is to something designed for the lowest common denominator of programming languages still in use today ... by all means go with XML::LibXML.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

Re^2: XML Parsing using perl
by Your Mother (Canon) on Feb 21, 2014 at 23:54 UTC

    Yeah… turn off JS and that periodic table page does not load any content whatsoever, and it has 24 script tags.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-08-31 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls