Hi, Monks! I tried to get answer from comp.lang.perl.misc, but I failed to get an ultimate answer. I just wrote short Perl script aiming at the processes below
step 1) read "20.xml" in my C:\perl folder
step 2) extract links in "20.xml"
e.g. extracting "Link A, B, C,..." from 20.xml
<permalink> Link A </permalink>
...
<permalink> Link B </permalink>
...
<permalink> Link C </permalink>
...
step 3) save links at "20.txt"

Below is what I have written until now.
I'm lost what line should be added, what should be corrected...
=================================================
#!/usr/bin/perl -w use strict; use LWP::Simple; use XML::TokeParser; use XML::Simple; my $t; my $cont = get("20.xml"); my $p = new XML::TokeParser(\$cont); $t = $p->get_tag("permalink"); $t = $p->get_trimmed_text("/permalink"); getstore($t, "20.txt");
=====================================================

If you had read this question from news group.I do apologize for repetition. If any monk knows the answer for this question, please let me know.
Thank you, always. A baby monk from Buffalo,NY.

In reply to XML::TokeParser, how to use it?? by peacekorea

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.