Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 09:49 UTC ( [id://407321]=note: print w/replies, xml ) Need Help??


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 10: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-05-22 18:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found