Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

(tye)Re: framechat2

by tye (Sage)
on Mar 08, 2002 at 19:05 UTC ( #150402=note: print w/replies, xml ) Need Help??


in reply to framechat2

With the new chatterbox xml ticker (which generates valid XML), framechat2 needs the following patch (thanks to Zaxo for help and testing). Change the fixxml sub to:

sub fixxml { # fix the xml nodes so they parse correctly my$xml = shift; my$fix = q{<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE CHATTER SYSTEM "dummy.dtd"[]>}; # mirod to the re +scue! $xml = $fix.$xml unless $xml =~ /^\s*\Q<?xml\E/; $xml =~ s/[\r\n\t]//g; # jcwren $xml =~ y/\x00-\x1f//d; # strip control chrs # Note that you should only need at most one of the above two lines. # The latter does everything the "jcwren" line does but # the extra strippage doesn't appear to be needed. return $xml; # to the xml parser }

        - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://150402]
help
Chatterbox?
[shmem]: it flies out of the editor, and enters the git branch through another window
[shmem]: hmm, thinking about it, a BOM could be a hummingbug
[erix]: humming bug
[choroba]: What's the name of a bug that manifests only in the production environment?
[shmem]: schrödinbug afaik, or a variant thereof
[shmem]: ah no, the higgs-bugson

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2018-02-20 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (271 votes). Check out past polls.

    Notices?