![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Convert backslash to slash using XML parsingby j.goor (Acolyte) |
on Nov 12, 2004 at 07:03 UTC ( [id://407286]=perlquestion: print w/replies, xml ) | Need Help?? |
j.goor has asked for the wisdom of the Perl Monks concerning the following question:
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!
Back to
Seekers of Perl Wisdom
|
|