Welcome to the Monastery | |
PerlMonks |
Re: Perl/XMLby OeufMayo (Curate) |
on Feb 19, 2001 at 22:51 UTC ( [id://59431]=note: print w/replies, xml ) | Need Help?? |
First, I see that this post is your first at Perlmonks, so welcome here! May you find Laziness, Hubris and Impatience! Perlmonks can be very picky sometimes when it comes to badly formatted post. Yours, for example is barely readable for the other monks. You really should read the following articles Site How To and Writeup Formatting Tips to learn how to use the <CODE> tags when posting. More on topic, I see that you're trying to convert XML to HTML. I think the easiest and most reliable way to do it would be to use XML::Parser to parse XML (obviously). The regular expressions you are using are very likely to break when the input from the source XML will include something you didn't expect or did not handle the datas as it is the case with your present script. Here's a couple of nodes that might interest you: Cheers, OeufMayo <kbd>--PerlMonger::Paris(http => 'paris.pm.org');</kbd>
In Section
Seekers of Perl Wisdom
|
|