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

match some word

by dhaval0203 (Initiate)
on Aug 03, 2010 at 11:34 UTC ( #852642=perlquestion: print w/replies, xml ) Need Help??

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

Hi monks i am new in perl, i have a xml file i want to search a word which is in quatation mark and want to saparate out the word which is not in tag. for ex..

<string name="no">No</string> <string name="password">Password</string>

The answer should be

no No password Password

Thank you!!

Replies are listed 'Best First'.
Re: match some word
by marto (Archbishop) on Aug 03, 2010 at 11:44 UTC
Re: match some word
by Anonymous Monk on Aug 03, 2010 at 11:44 UTC
Re: match some word
by murugu (Curate) on Aug 03, 2010 at 15:39 UTC
    use XML::Twig

    Regards,
    Murugesan Kandasamy
    use perl for(;;);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2019-06-25 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (101 votes). Check out past polls.

    Notices?