#!/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.

In reply to Re^2: Formating a HTML document to show certain text. by Anonymous Monk
in thread Formating a HTML document to show certain text. by The Elite Noob

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.