G'day samberman,
Welcome to the Monastery.
I searched for pageView in the source of http://shop.tcgplayer.com/yugioh/abyss-rising/abyss-dweller.
It wasn't found!
On the web page, I see a "Login" link. Did you log in before navigating to this page? That could change the content.
In the source HTML, I see a lot of the content is generated with JavaScript.
Furthermore, some of the JavaScript code appears to be dynamically generated;
for instance, I see 'var SHIPPINGCOUNTRY = 'AU';' in one <script>...</script> element (I'm in Australia) and that's reflected in the web page under "Shipping Country" (bottom left corner).
Anyway, without being able to see the same markup as you've posted, here's some things to try:
-
You say you "can print $content". Does that contain the same markup as the "snippet from the web page" you posted?
-
Are there more than one element with the attribute class="pageView"? What does $parent hold?
-
Is your XPath expression correct? Did you perhaps want '//option' or '/select/option' instead of the '/option' part? [Here's the "Abbreviated Syntax" section of the full "XPath Specification"]
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.