Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: read a file and insert closing tags if not present

by valavanp (Curate)
on Mar 29, 2007 at 09:45 UTC ( #607189=note: print w/replies, xml ) Need Help??


in reply to Re^3: read a file and insert closing tags if not present
in thread read a file and insert closing tags if not present

Hi grandfather, Your solution is fine. But when i give like this extra tags have been inserted. how can i avoid this.
use strict; use warnings; use HTML::TreeBuilder; my $sgml = <<SGML; <html> <greeting class="simple">Hello, world!<head>heading</head> </html> SGML my $root = HTML::TreeBuilder->new (); $root->ignore_unknown (0); $root->parse ($sgml); print $root->guts (0)->as_XML ();
Thanks for your suggestion

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://607189]
help
Chatterbox?
[Eily]: sorry, got interrupted
[Eily]: so he left from Nancy
[Eily]: and my point was, he met some monks yesterday in Italy who offered him a place for the night
[Eily]: and since he was meating eatalian monks I wondered if I should tell him to say hi to Discipulus for me :D
[erix]: Nancy-Bari: 1320 km ... He'll need some time :)
[LanX]: he was "meating" Italian monks oO?
[erix]: then again, there are people who do 10 full triathlons on 10 consecutive days, so it must be doable

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-12-13 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (369 votes). Check out past polls.

    Notices?