Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: XML::Simple problem, or How to convert HTML to Perl and then back again.

by Wonko the sane (Deacon)
on Jul 11, 2003 at 18:49 UTC ( #273526=note: print w/replies, xml ) Need Help??


in reply to Re: XML::Simple problem, or How to convert HTML to Perl and then back again.
in thread XML::Simple problem, or How to convert HTML to Perl and then back again.

Thank you for your help, though I dont really have a problem parsing the HTML,
Its getting it back TO HTML that is causing me the problems. :-)

Thanks though.
Wonko

  • Comment on Re: Re: XML::Simple problem, or How to convert HTML to Perl and then back again.

Replies are listed 'Best First'.
Re: Re: Re: XML::Simple problem, or How to convert HTML to Perl and then back again.
by pzbagel (Chaplain) on Jul 11, 2003 at 19:00 UTC

    Not to sound facetious, but it doesn't get any easier than: print $token->as_is; in TokeParser and print $tree->as_HTML; in TreeBuilder to put it back into HTML form. Start with the right parser, an HTML specific one, and get better results. Remember HTML is not as rigid in it's formatting as XML which makes it flexible but a real pain to parse at times. Using a specialized parser for HTML has many benefits.

    Peace

      Your right.

      Maybe HTML::TokeParser::Simple is the right tool I need.
      I missed what you were gtting at the first time.
      I am going to go play with it some more.

      Thank you.
      Wonko

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://273526]
help
Chatterbox?
Eily sets the confetti thrower
[Discipulus]: Eily adjust the shot: i'll be at seaside when it will happen
[Eily]: oh, I'll have to find something else then, don't want to litter the sea. Fireworks maybe?
Eily time to eat

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2017-07-27 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (409 votes). Check out past polls.