Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Formating a HTML document to show certain text.

by Anonymous Monk
on Mar 28, 2011 at 06:52 UTC ( [id://895848]=note: print w/replies, xml ) Need Help??


in reply to Re: Formating a HTML document to show certain text.
in thread Formating a HTML document to show certain text.

#!/usr/bin/perl -- use strict; use warnings; use HTML::TreeBuilder::XPath; Main( @ARGV ); exit( 0 ); sub Main { my $tree = HTML::TreeBuilder::XPath->new; $tree->parse_file( "the-elevation-group.htm" ); my $XpathXpr = join '|', q#//div[@id='leftColTop']/div[@class='heading']#, q#//div[@id='leftColTop']/div[@class='heading']/following-sibling::nod +e()[1]#, ; for my $node ( $tree->findnodes_as_strings( $XpathXpr ) ){ print "$node\n\n"; } } __END__
Product Description The Elevation Group is an training system developed by Mike Dillard th +at will give you access to the investment strategies used by some of +the richest investors in the industry. You will be able to secure fre +e access to a 90 minute presentation on how to use investments to pro +fit during economic chaos. This presentation will cover a wide variet +y of investment topics and give you a good grounding in what you need + to do to succeed. Detailed Overview With The Elevation Group presentation you will learn how you can becom +e rich during economic turmoil even if you don't happen to have a lot + of money to invest. You will get insight into how the economy is goi +ng to be in the future so you can protect the money you have amassed. + You will learn how Mike Dillard has increased his personal wealth ma +ny times and also how you can do this for yourself. You will finally +understand why investing in the stock market at this time is a very b +ad idea and learn what you actually should be investing in. You will +no longer have to worry about IRA's or any other traditional retireme +nt investment strategies - you will learn how the rich do their inves +tments to grow their money and retire 100% tax free. Reputation Mike Dillard has built his wealth from the ground up. His newsletter h +as helped thousands of people of people be successful - with over one + million subscribers. He has built a strong reputation that has been +backed up by his real-life success. If you are wanting to get on top +of this economy and if you want to learn how investing can make you s +uccessful then you will want to take the time to take a look at this +seminar. Domain "Whois" The Whois information for a website lists the owner and their contact +information. The Whois information for "The Elevation Group" is publi +c which is generally a good thing. This indicates the owner of this s +ite has nothing to hide.
Read http://w3schools.com/xpath/default.asp for gentle introduction to xpath.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-25 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found