chorg has asked for the wisdom of the Perl Monks concerning the following question:

Hello all

I am using DBIx::XML_RDB to output a db query to an application that understands xml. However, it is not working - the app (Flash 5) is not accepting the XML document. So I checked it out in the debugger, and in the output is all these \cJ and \cI. What are these? Can I just

s/\cJ|\cI//g

to get rid of them?
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

Replies are listed 'Best First'.
Re: Removing \cJ and \cI
by chipmunk (Parson) on Dec 01, 2000 at 23:13 UTC
    \cJ is a linefeed - also known as \n.
    \cI is a tab - also known as \t.
    You shouldn't have to remove the \cJ characters; those are newlines. You could use tr/// to change each tab to a space: tr/\t/ /;
Re: Removing \cJ and \cI
by Fastolfe (Vicar) on Dec 02, 2000 at 06:14 UTC
    Those are probably quite normal (newlines and tabs). If the application is legitimately complaining about the newlines, perhaps it's expecting something in DOS form (where newlines are expressed by CRLF's instead of the Unix equivalent of just an LF). I'm not terribly familiar with this module, but similar problems happen when you FTP a text file from Unix to Windows (or vice-versa) without specifying an ASCII transfer method.

    Does the application explain why the XML document is being rejected? An actual error message would help.