InterviewSolution
| 1. |
What Is A Stax Parser? |
|
Answer» StAX is a JAVA based API to PARSE XML document in a similar way as SAX parser does but StAX is a PULL API where as SAX is a PUSH API. It means in CASE of StAX parser, CLIENT application need to ASK StAX parser to get information from XML whenever it needs but in case of SAX parser, client application is REQUIRED to get information when SAX parser notifies the client application that information is available. StAX is a JAVA based API to parse XML document in a similar way as SAX parser does but StAX is a PULL API where as SAX is a PUSH API. It means in case of StAX parser, client application need to ask StAX parser to get information from XML whenever it needs but in case of SAX parser, client application is required to get information when SAX parser notifies the client application that information is available. |
|