Dear Monks,
Problem: I use FireFox 1.0(wheee!!!), and I want to get to my online O'Reilly books via http:\\ (not via file:\\\\).
But the very odd thing is: OReilly apparently did not read the w3c recommendations about 'how to construct a hyperlink'.
*All* hyperlinks (and other links as well) are in the backslash-notation, as if is were directory paths.
I want to write a script that:
1) slurp one page into an XML parser
2) convert the '\' 's to '/' 's
3) spit it out to another place.
I do not have much experience with XML, but this seemed a nice way to fool around with it.
My questions are:
a) do you recognize my problem regarding OReilly e-books?
b) could you provide me with a working code-snipped (this should be easy for an experienced perl/XML programmer)
c) If XML parsing is overdone, what's the best RE I can use?
P.S. InternetExplorer works just fine, but then again: who really want to use *that*?? ;-)
Thanks in advance!
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.