Hi, Thank you, but I am unable to figure out my exact requirement from a huge pool of info there in "state of web spidering in perl". Can you specify exactly which matches my req ? Thanks, Bala.

Well, I only link examples in one post, so that one :) and they all match your spec, they're all about extracting "tags" from xml ...

As Corion says, LibXML is one of the best choices available, use xpather.pl on your xml file to get a list of xpaths you can use to extract data you want (or url, but its better to download url to file for testing/development/until you figure stuff out )

examples of extracting "tags" are at Re: Stepping up from XML::Simple to XML::LibXML, Re^5: Parsing xml using libXML, Re: Nested XML Question,

Re^2: How to make use of dynamic namespace registration to replace the values of elements and attributes using XML::LibXML::XPathContext xml module

Re: Perl XML Search, Re: Filter for XML elements, Re: hi i want to retrieve the element and values from xml document, Re: XML::Simple XML / XMLin / XMLout? or something else?, Re: Struggling with XML, Re: XML Parsing, Re^6: Is there any XML reader like this? (XML::Simple beats LibXML hands down in the speed stakes!), Re^5: XML::LibXML problem,

https://metacpan.org/module/XML::LibXML::Node, https://metacpan.org/module/XML::LibXML::Element, https://metacpan.org/module/XML::LibXML


In reply to Re^3: Parse multiple xml tags with different names to an array by Anonymous Monk
in thread Parse multiple xml tags with different names to an array by rbala

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.