[jdev] Re: Inputting arbitrary XML for testing

Jacob Bunk Nielsen jbnliste at bunk.cc
Tue May 17 03:01:30 CDT 2005


Jacob Bunk Nielsen <jbnliste at bunk.cc> writes:

> For various reasons I would like to be able to easily input more or
> less arbitrary XML into an XMPP stream. What is the best way to do
> this?

Just for the record. I ended up using the script Julien posted in this
thread (slightly modified) in a way like:

(sleep 1 && cat input.xml && echo "</stream:stream>") | ./xmpp.py

Where xmpp.py is Julien's script. It's not a very nice way of doing
things, but it's easy and it works for me in this case.

Thanks for your help.

-- 
Jacob




More information about the JDev mailing list