  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Parsing XML File - From Session Bean | Parsing XML File - From Session Bean 2004-04-16 - By Ben Hill
Back > -- --Original Message-- -- > From: Arul Prakasam [mailto:arul.prakasam@(protected)] > Sent: 16 April 2004 05:19 > To: J2EEPATTERNS-INTEREST@(protected) > Subject: Re: Parsing XML File - From Session Bean > > > Use sax parser for effective parsing.
That's a non-quantifiable statement really. It depends on your requirements. If you wish to read some data from an XML document or parse it once, then Sax is pretty good. If you have to store an in-memory model of the document and manipulate it, then a DOM parser may be more applicable.
HTH
Ben
********************************************************************
This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you
Check us out at http://www.btsyntegra.com
********************************************************************
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1"> <TITLE>RE: Parsing XML File - From Session Bean</TITLE> </HEAD> <BODY> <!-- Converted from text/plain format -->
<P><FONT SIZE=2>> -- --Original Message-- --</FONT>
<BR><FONT SIZE=2>> From: Arul Prakasam [<A HREF="mailto:arul.prakasam @(protected)">mailto:arul.prakasam@(protected)</A>] </FONT>
<BR><FONT SIZE=2>> Sent: 16 April 2004 05:19</FONT>
<BR><FONT SIZE=2>> To: J2EEPATTERNS-INTEREST@(protected)</FONT>
<BR><FONT SIZE=2>> Subject: Re: Parsing XML File - From Session Bean</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Use sax parser for effective parsing.</FONT> </P>
<P><FONT SIZE=2>That's a non-quantifiable statement really. It depends on your requirements.</FONT>
<BR><FONT SIZE=2>If you wish to read some data from an XML document or parse it once, then Sax</FONT>
<BR><FONT SIZE=2>is pretty good. If you have to store an in-memory model of the document and</FONT>
<BR><FONT SIZE=2>manipulate it, then a DOM parser may be more applicable.</FONT> </P>
<P><FONT SIZE=2>HTH</FONT> </P>
<P><FONT SIZE=2>Ben</FONT> </P>
<CODE><FONT SIZE=3><BR> <BR> ********************************************************************<BR> <BR> This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person<BR> Thank you<BR> <BR> Check us out at http://www.btsyntegra.com<BR> <BR> ********************************************************************<BR> </FONT></CODE> </BODY> </HTML> ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |