This happened to me.   I ended up using the Crimson package, its an implementation of JAXP1.1 by the apache group.  
 
I also had this same problem using MSXML3 & COM.   I couldn't use another package for that, so I added a hack that
inserted <!-- --> into the stream after reading the <stream:stream> tag.  That forced MSXML to fire a start element event.
 
Good Luck,
 
-Robert
-----Original Message-----
From: John Bell [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 08, 2001 11:17 PM
To: [EMAIL PROTECTED]
Subject: [JDEV] Using Java Socket and JAXP1.1 DefaultHandler

Hi,
I'm having a problem using the Java Socket object and the JAXP1.1 SAXParser DefaultHandler. To post all the code would make for a really long post so I'm hoping an explaination will be sufficient. I connect ok to jabber.org but it seems that my handler for the <stream:stream> element doesn't get processed by the parser until the end element is captured, i.e. by sending "</stream:stream>" to the server, making it impossible to capture the initialization success event (by processing the <stream:stream> starting element) and thus making it impossible to process an xml conversation. Has anyone one seen this or I am I doing something wrong along the way somewhere.
 
Thanks, John
 

Reply via email to