Graf Laszlo wrote:
Hi

Hello,

I have the following HTML structure:


Looks more like XML...

<sm:a>
    <sm:b>
        BBB
    </sm:b>
    <sm:c>
        CCC
    </sm:c>
</sm:a>

Every line in this structure is an element of an array,
named @lines, and I access the elements using a foreach loop.

When I know the tag's name, by example 'sm:a',
and I need to extract the information contained by '<sm:a>'
and '</sm:a>' pair and the tags too, how should I proceed ?

I recommend trying an XML parsing module from search.cpan.org

HTH :)

Lee.M - JupiterHost.Net

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to