mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
xml-unfriendly complete
This commit is contained in:
parent
6898cc65e4
commit
c705ba2259
6 changed files with 33 additions and 35 deletions
|
@ -1,10 +1,5 @@
|
|||
<message
|
||||
from='romeo@example.net/orchard'
|
||||
id='sl3nx51f'
|
||||
to='juliet@example.com/balcony'
|
||||
type='chat'
|
||||
xml:lang='en'>
|
||||
<body>"Neither, fair saint, if either thee dislike.", he said.
|
||||
<message from='romeo@example.net/orchard' to='juliet@example.com/balcony'>
|
||||
<body>"Neither, fair saint, if either thee dislike.", he said.
|
||||
And
|
||||
the
|
||||
rest
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
<message
|
||||
from='juliet@example.com/balcony'
|
||||
id='c8xg3nf8'
|
||||
to='romeo@example.net'
|
||||
type='chat'
|
||||
xml:lang='en'>
|
||||
<subject>I implore you with a pointless
|
||||
<message from='juliet@example.com/balcony' to='romeo@example.net'>
|
||||
<subject>I implore you with a pointless
|
||||
newline in a header variable</subject>
|
||||
<body>Wherefore art thou, Romeo?
|
||||
<body>Wherefore art thou, Romeo?
|
||||
|
|
||||
And for practicing purposes we added a PSYC packet delimiter.</body>
|
||||
</message>
|
||||
|
|
3
bench/packets/xml-unfriendly.json
Normal file
3
bench/packets/xml-unfriendly.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
["message",{"from":"juliet@example.com/balcony","to":"romeo@example.net"},
|
||||
"Pro\x010De\x017D jsi ty, Romeo?"]
|
6
bench/packets/xml-unfriendly.psyc
Normal file
6
bench/packets/xml-unfriendly.psyc
Normal file
|
@ -0,0 +1,6 @@
|
|||
:_source psyc://example.com/~juliet
|
||||
:_target psyc://example.net/~romeo
|
||||
|
||||
_message
|
||||
PročeŽ jsi ty, Romeo?
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
<message
|
||||
from='juliet@example.com/balcony'
|
||||
id='z94nb37h'
|
||||
to='romeo@example.net'
|
||||
type='chat'
|
||||
xml:lang='en'>
|
||||
<body>Wherefore art thou, Romeo?</body>
|
||||
<body xml:lang='cs'>
|
||||
PročeŽ jsi ty, Romeo?
|
||||
</body>
|
||||
<message from='juliet@example.com/balcony' to='romeo@example.net'>
|
||||
<body>PročeŽ jsi ty, Romeo?</body>
|
||||
</message>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue