Hello Sonal,
Thank you very much for your response. I am still working on your solution. I have read about SAX and understand the basic how it should work. I still have problems with the registring the handler or creating them in code. I need more experience in that.
Your Example wasn’t very clear to me, so I also referred to the Tamino API Java Doc → TSAXObjectModel and could figure out some more stuff. But I’m still confused. 
TSAXObjectModel saxObjectModel = new TSAXObjectModel("YOUREXAMPLESAXObjectModel", null, ??? , null, elementDefaultHandler);
</pre><BR><BR>This is the line of code I have problem with.<BR><BR>Lets check the parameters together<BR><BR>1) <B> specifier </B> - <I> a string identifying this SAX object model instance. As it is possible to instantiate more than one instance, each instance must have a different specifier. </I><BR><BR>In my case it does mean this string can be anything since I have just one instance, right?<BR><BR><BR>2) <B> saxDocumentClass </B> - <I> a class implementing the TSAXDocument interface. This parameter is required if the documentDefaultHandler parameter is not null, otherwise null is allowed. This parameter must be set if single XML documents are either retrieved from Tamino or are created as TXMLObject instances.</I><BR><BR>In my case a null is suffient. see below <BR><BR><BR>3) <B> saxElementClass </B> -<I> a class implementing the TSAXElement interface. This parameter is required if the elementDefaultHandler parameter is not null, otherwise null is allowed. This parameter must be set if XML documents resulting from a Tamino query are to be processed.</I><BR><BR>Thats exactly what I need. So I need this parameter to be set. But how...<BR><BR>4)<B> documentDefaultHandler </B> - <I> an instance of a class extending the TSAXDocumentDefaultHandler abstract class. This parameter is optional, but required if single XML documents are either retrieved from Tamino or are created as TXMLObject instances. If this parameter is specified, the saxDocumentClass parameter must also be set.</I><BR><BR>Well since it is optional and in my case not needed I set it to null.<BR><BR>5) <B>elementDefaultHandler</B> - <I> an instance of a class extending the TSAXElementDefaultHandler abstract class. This parameter is optional, but required if XML documents resulting from a Tamino query are to be processed. If this parameter is specified, the saxElementClass parameter must also be set.</I><BR><BR>Ok I need this one too. But again I don't know how to do that. <BR><BR><pre class="ip-ubbcode-code-pre">TSAXElementDefaultHandler elementDefaultHandler;</pre><BR><BR>This would be a start but I really don't know how to initialize that...<BR><BR><BR>Regarding your example, I don't understand this part:<BR><pre class="ip-ubbcode-code-pre">
// Instantiate the default handler that processes the sax events
YOUREXAMPLEDefaultHandler = new YOUREXAMPLEDefaultHandler();
// Instantiate the document and element event handlers each of which
// delegates its events to the greetingDefaultHandler
elDefHandler = new ElementDefaultHandler( YOUREXAMPLEDefaultHandler );
Would you like to elaborate that more to me please?
Thank you very much,
Houman Khorasani
University of Wisconsin Platteville
#API-Management#webMethods#webMethods-Tamino-XML-Server-APIs