Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: reading multiple xmls in a folder and to get tagvalues stored and then printed to HTML

by numberuno (Initiate)
on Apr 27, 2012 at 02:52 UTC ( #967500=note: print w/ replies, xml ) Need Help??


in reply to Re: reading multiple xmls in a folder and to get tagvalues stored and then printed to HTML
in thread reading multiple xmls in a folder and to get tagvalues stored and then printed to HTML

There is no example on how to read multiple XMLs and parse to HTML. The page just says "You could place this in a script to check multiple files in your XML folders." :(


Comment on Re^2: reading multiple xmls in a folder and to get tagvalues stored and then printed to HTML
Re^3: reading multiple xmls in a folder and to get tagvalues stored and then printed to HTML
by jeffa (Chancellor) on Apr 27, 2012 at 18:51 UTC

    You have 3 tasks:

    1. read multiple files into memory
    2. parse those files via an XML parser
    3. do something with the parsed content (convert specific tag values to HTML
    XML::Simple merely accomplishes the second task. I recommend looking at Config::Any which will take care of tasks one AND two and you might not even need to do any heavy lifting to take care of the third task, but if you do there is always HTML::Template or Template::Toolkit.


    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (21)
As of 2014-07-30 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (236 votes), past polls