Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Parse XML file to search a Key and Get its value

by szpt9m (Novice)
on Apr 26, 2022 at 18:02 UTC ( [id://11143317]=perlquestion: print w/replies, xml ) Need Help??

szpt9m has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Parse XML file to search a Key and Get its value
by afoken (Chancellor) on Apr 26, 2022 at 18:19 UTC

    Show your code so far. If you don't have any, start with this:

    #!/usr/bin/perl use strict; use warnings;

    Then, have a look at File::Find or File::Find::Rule to find files and XML::LibXML to handle XML.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re: Parse XML file to search a Key and Get its value
by hippo (Bishop) on Apr 26, 2022 at 18:20 UTC
    Need your help

    We're here to help. However, you have shown no code and asked no questions, so ... ?


    🦛

Re: Parse XML file to search a Key and Get its value
by Discipulus (Canon) on Apr 26, 2022 at 20:26 UTC
    Hello szpt9m,

    > "If you need to deal with XML, first, we’re very sorry"

    I was used to XML::Twig or you can look also here

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

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

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

    No recent polls found