From: Paul M <pjm...@yahoo.com>
> Hi:
>
> Given the following list:
> <elem1>
> <elema></elema>
> <elemb>
> <elemc></elemc>
> </elemb>
> </elem1>
>
> I  want to know all the "elements" within elem1. (Note: It is
> seriously MALFORMED XML, that is why I am attempting to use regexp).

It's hard to say, but it might be easier to fix the XML and then use
normal XML tools. Besides if we do not know how it is malformed, we
can't be sure the solution we may give you can work. And what XML
features we can safely ignore. Eg. are there any <![CDATA[ ... ]]> ?

Jenda
===== je...@krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to