[jdev] Inputting arbitrary XML for testing

Jacob Bunk Nielsen jbnliste at bunk.cc
Sat May 7 14:34:35 CDT 2005


Julien PUYDT <julien.puydt at laposte.net> writes:
> Jacob Bunk Nielsen a écrit :
>> 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?
>
> I'm using the attached python script to discuss directly with my server.
>
> Should be easy to adapt to your needs.

Cool thanks. However I don't have any experience with Python what so
ever, and it says:

$ ./xmpp.py
  File "./xmpp.py", line 54
    VerboseSocket!
                 ^
SyntaxError: invalid syntax

I have Python 2.3.5. If I simply remove the line it's complaining
about I just get another error, but it looks like it is trying to
connect.

As Python is very unfamiliar to me I don't think that this script is
the way to go for me, but thank you for sharing.

-- 
Jacob




More information about the JDev mailing list