Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
There's more than one way to do things
 
PerlMonks  

Re^2: Convert backslash to slash using XML parsing

by Aighearach (Initiate)
on Nov 12, 2004 at 04:49 UTC ( [id://407321]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Convert backslash to slash using XML parsing
in thread Convert backslash to slash using XML parsing

THere must be more to it than that, presumably the books contain other, non-url backslashes also.

--
Snazzy tagline here
  • Comment on Re^2: Convert backslash to slash using XML parsing

Replies are listed 'Best First'.
Re^3: Convert backslash to slash using XML parsing
by Taulmarill (Deacon) on Nov 12, 2004 at 05:13 UTC
    yea ok, that may be. but why XML?!?
    if i wanted to be clean i would use HTML::Parser.
      I proposed XML parsing because it would solve my problem on one hand and it is a nice way to solve a 'real world problem' on the other hand.
      Indeed using 'tr' would convert *all* '\', but I only want to convert *links*.
      HTML::Parser sounds usable. I'll take a look at it. In the mean time, don't hesitate to reply furthermore since I hope someone will give me a snippet of XML parsing.. :-) This would make a great start for me to get along

        Since the books are published in what would be valid HTML 4 if it had a document type declaration for each document, an XML parser unfortunately won't get you anywhere. XML parsers by definition function only on XML, not on tag soup.

        If you still want to go that way, maybe upgrading the documents to XHTML with tidy works.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://407321]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.