Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Perl/XML

by OeufMayo (Curate)
on Feb 19, 2001 at 22:51 UTC ( [id://59431]=note: print w/replies, xml ) Need Help??


in reply to Perl/XML

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>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://59431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-26 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found