Master
'
s Thesis 2006 
FACHHOCHSCHULE
HOCHSCHULE F
U
R
LI Hui 
STUTTGART
TECHNIK
Background 
        STUTTGART UNIVERSITY OF APPLIED 
SCIENCES 
3.
XML output processing. In this stage, the application constructs a model of the 
document  to  be  generated  with  the  Document  Object  Model  (DOM).  It  then 
either applies XSLT style sheets or directly serializes to XML.   
2.6.2  XML parser in MIDP 
Parsers  are  traditionally  bulky,  featuring  lots  of  code  and  hefty  runtime  memory 
requirements.  In  MIDP  devices,  the  memory  available  for  code  is  usually  small  and 
individual applications may have a maximum code size. 
There  are  three  fundamental  parser  types.  Which  type  you  choose  depends  on  how 
you want your application to behave and what types of documents you re expecting to 
parse.   
1.
A 
model
  parser  reads  an  entire  document  and  creates  a  representation  of  the 
document  in  memory.  Model  parsers  use  significantly  more  memory  than 
other types of parsers.   
2.
A 
push
 parser reads through an entire document. As it encounters various parts 
of the document, it notifies a listener object.   
3.
A 
pull
  parser  reads  a  little  bit  of  a  document  at once.  The  application  drives 
the parser through the document by repeatedly requesting the next piece.   
Open  source  parsers  are  attractive  because  they  give  you  lots  of  control.  You  can 
customize a parser if you need additional features, and you can fix the parser if it has 
bugs.   
The  following  table  summarizes  the  current  offering  of  small  XML  parsers  that  are 
appropriate for MIDP.   
23 




PHP MySql Web Hosting Design and Implement Client Applications PHP MySQL Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.