A bit of thought on the custom ContentHandler question. Can I use the following two methods to let a deserializer call my SAX parser:
1. DeserializationContext.setRecorder(SAX2EventRecorder recorder); 2. SAX2EventRecorder.replay(org.xml.sax.ContentHandler handler) in which handler is my custom ContentHandler. Does anyone know the exact operation of replay()? Does the deserializer return an object in required type after replay()? Thanks. George >-----Original Message----- >From: Y D Sun [mailto:[EMAIL PROTECTED] >Sent: 15 October 2003 12:49 >To: [EMAIL PROTECTED] >Subject: How to bind custom ContentHandler to deserializer > > >Hi everyone, > >Nice to join axis-user list. Thanks Toshiyuki for your tester code. > >I have another question about custom deserializer. I have a >custom ContentHandler. How to call it in a custom >deserializer? I know, the ContentHandler can be set to a >XMLReader like: > >xmlReader.setContentHandler(customHandler) > >However, I'd like to know how to set the ContentHandler in a >custom deserializer, or any other methods to let the >deserializer call this handler to parse a value. > >Thanks, > >George >
