Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Kindly suggest a good starting point for XML Parsing.

by CountZero (Bishop)
on Dec 29, 2011 at 16:48 UTC ( #945529=note: print w/ replies, xml ) Need Help??


in reply to Kindly suggest a good starting point for XML Parsing.

To learn about XML and its associated technology, I find W3 Schools a nice point to start.

A combination of XML, XPath and XSLT will probably already bring you far.

Personally, I try to do as much "work" on XML-structures inside of the XML technology and only as a last resort apply Perl to it. Of course, Perl and XML work seamlessly together. So when you have extracted (XPath) the info from your XML-file and transformed it into another XML-format (through XSLT), that --if it is not already final-- should be easy to understand by your Perl-program for a final polishing.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James


Comment on Re: Kindly suggest a good starting point for XML Parsing.
Re^2: Kindly suggest a good starting point for XML Parsing.
by tobyink (Abbot) on Jan 04, 2012 at 00:25 UTC

    XSLT is an absolutely horrible programming experience. I tend to regard XSLT as a solution of last resort.

    It's right at the bottom of my list of solutions for programming problems, just below taking my own life.

      I think C and its minions are horrible programming languages, but that is just my feeling.

      Many years ago and long before Catalyst, Dancer or even Mason was even thought of, the first big web-project I did used Perl to extract data from a database and export it as an XML-file which was then transformed "server-side" into HTML through XSLT. XSLT was acting as a kind of proto-templating framework. If I remember well, it was early versions of AxKit and Sablotron all the way then and although the set-up was very difficult, once it ran inside the Apache-server it worked perfectly.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-09-22 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls