Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to use perl XML::LibXML Parser?

by sundialsvc4 (Abbot)
on Feb 26, 2014 at 13:18 UTC ( [id://1076248]=note: print w/replies, xml ) Need Help??


in reply to How to use perl XML::LibXML Parser?

Also, particularly in this case, consider all of the technological alternatives that you have to do this very-common task, which is:   transforming one XML document into another XML document.   There are existing technologies called XSLT and XQuery which are specifically designed to do this ... without writing a computer-program in any language to do it.

Before you do much of anything else on this project, Google terms such as saxon, xalan, libxslt, and MSXML.   Of course Perl has support for it, too, e.g. in XML::LibXSLT, but it may well be that to do this task you can ... well, maybe you ca do it in your web-browser, word processor, or spreadsheet!

For a striking example of what I am talking about, go to http://excelhero.com/periodic-table/.   This entire display is built using XSLT transforms that are taking place in your browser.   There are only a couple of short JavaScript routines to provide the interation.   No programming is used to build the display.

  • Comment on Re: How to use perl XML::LibXML Parser?

Replies are listed 'Best First'.
Re^2: How to use perl XML::LibXML Parser?
by jfroebe (Parson) on Feb 26, 2014 at 14:57 UTC

    Regarding http://excelhero.com/periodic-table/ WOW!

    Jason L. Froebe

    Blog, Tech Blog

      Uh huh ... that’s exactly my reaction, too.

      Then, when you start peeking at the source-code of the thing, you discover an XSLT document, and a small one at that, which is drawing data from XML data-sources.   Included in that output is just a couple of very small JavaScript onclick and mouseover routines, just for effect.   The HTML that you see is generated, and it’s being done by your browser!

      Another, much more inaccessible, example of XSLT is DocBook, which is the technology that enabled all those O’Reilly books (the ones with animals on the cover ...) to be produced in all those different forms.   You suspected that the same material was being drawn-from over and over again, and so it was.   You suspected that the extremely-regular formatting of the books was generated, somehow.   And it was, and this is how.   Not through programming, but through XSLT.   Online help, slide shows, all sorts of things, are produced this way.

      (And I’ve done a lot of it ... happy to consult.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 12:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found