[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xAP Jabber
Jabber uses XML, it's a bit more syntax-sensitive than HTML browsers.
<br/> (that's a closed XML tag).
Whitespace line endings are generally ignored in XML. So no amount of CR,
LF or CRLF combos will make any difference if a tool is properly handling
XML.
-Bill Kearney
----- Original Message -----
From: "James Traynor" <james.traynor@xxxxxxx>
To: <xap_automation@xxxxxxx>
Sent: Monday, July 07, 2008 3:05 PM
Subject: Re: [xap_automation] xAP Jabber
>
> using <BR> should do the trick.
> (Jabber messages are pretty much HTML. The non-html message part is
> formed from the html part so <BR> becomes a linefeed)
> The display message method should work too but I think a bugette is
> stopping the line feeds going through.
>
> hth
>
> James
>
> Martyn Wendon wrote:
>>
>> Hello,
>>
>> Using xAP Jabber, how can I formulate a message to encorporate
line
>> breaks?
>>
>> e.g.
>>
>> xap-header
>> {
>> v=12
>> hop=1
>> uid=FF456200
>> class=messenger.cmd
>> source=mi4.floor.AHSHASERVER
>> }
>>
>> message.send
>> {
>> to=somechimp@xxxxxxx
>> <mailto:to=somechimp@xxxxxxx>
>> body=Environment: <Info> Garage Temperature: 17.81 deg
C. RackTop
>> Temperature: 30.63 deg C. RackBottom Temperature: 28.34 deg C.
Outside
>> Temperature: 17.02 deg C.
>> }
>>
>>
>> I want the resulting IM message to look like:
>>
>> Environment: <Info>
>> Garage Temperature: 17.81 deg C.
>> RackTop Temperature: 30.63 deg C.
>> RackBottom Temperature: 28.34 deg C.
>> Outside Temperature: 17.02 deg C.
>>
>>
>> I've tried various combinations of <br> \r \n \\r\\n
>> <file://%5C%5Cr%5C%5Cn> \r\n etc etc but not got it working
yet - I'm
>> sure I'm missing something simple???
>>
>>
>>
>> Thanks,
>>
>> Martyn
>>
>
>
------------------------------------
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|