Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Plz help me

Plz help me

2005-01-19       - By david kavanagh

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

ok, so how do you want to "address" that element? What model would you
like to use to get that data from that element? If you use DOM, you'll
get a generic data structure in memory, but you'll still need to look
for that element by name. With JAXB, you can get an object that
specificly represents the note "customer-name". What are you looking
for?

David



On Thu, 20 Jan 2005 09:33:49 +0530,
Raghavendra.Kopalle@(protected)
<Raghavendra.Kopalle@(protected)> wrote:
> David,
>
> Lets say I am extracting the an element from the XML the  I don't want
> to say something like this
>
> Public void startElement(....){
>         If (qName.equals("customer-name")) {
> custBean.setCustomerName(qName));
> }
>
> If you look at the above code I am hardcoding the customer-name element
> which I don't want.
>
> Thanx and Regards
>
> KR Kumar
>
> -- --Original Message-- --
> From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
> [mailto:J2EE-INTEREST@(protected)] On Behalf Of david kavanagh
> Sent: Wednesday, January 19, 2005 7:30 PM
> To: J2EE-INTEREST@(protected)
> Subject: Re: Plz help me
>
> Well, it sounds like you just want it in a DOM tree, right? I mean,
> that is a generic representation of your XML. Is there something else
> I'm missing? JAXP will do this for you.
>
> David
>
> On Wed, 19 Jan 2005 09:20:00 +0530, KR Kumar
> <Raghavendra.Kopalle@(protected)> wrote:
> > No I still want to JAXP only. But I want are there generic design
> > patterns or means thru which I can address the issue. I mean I don't
> > want to hard code the element names during the processing of the XML
> > file in my code.
> >
> > -- --Original Message-- --
> > From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
> > [mailto:J2EE-INTEREST@(protected)] On Behalf Of Ranjeeth kumar
> > Sent: Tuesday, January 18, 2005 8:48 PM
> > To: J2EE-INTEREST@(protected)
> > Subject: Re: Plz help me
> >
> > are u completely ruling out the possibility of JAXB?
> >
> > -Ranjeeth
> >
> > On Tue, 18 Jan 2005 18:22:36 +0530, KR Kumar
> > <Raghavendra.Kopalle@(protected)> wrote:
> > >
> > >
> > >
> > >
> > >
> > > Hi guys,
> > >
> > >
> > >
> > > I have a medium size xml file which I need to read. I am using SAX
> > Parser
> > > for the same. Is there any generic way I can pull this data from the
> > xml and
> > > put it in a VO. I don't want hardcore or use a constants class for
> > element
> > > names of the XML. Plz give me a code sample if its possible.
> > >
> > >
> > >
> > > Thanx & Regards
> > >  KR Kumar
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > DISCLAIMER:
> > > This message contains privileged and confidential information and is
> > > intended only for the individual named.If you are not the intended
> > recipient
> > > you should not disseminate,distribute,store,print, copy or deliver
> > this
> > > message.Please notify the sender immediately by e-mail if you have
> > received
> > > this e-mail by mistake and delete this e-mail from your
> system.E-mail
> > > transmission cannot be guaranteed to be secure or error-free as
> > information
> > > could be intercepted,corrupted,lost,destroyed,arrive late or
> > incomplete or
> > > contain viruses.The sender therefore does not accept liability for
> any
> > > errors or omissions in the contents of this message which arise as a
> > result
> > > of e-mail transmission. If verification is required please request a
> > > hard-copy version.
> > >
> >
> ========================================================================
> > ===
> > > To unsubscribe, send email to listserv@(protected) and include in
> the
> > body
> > > of the message "signoff J2EE-INTEREST". For general help, send email
> > to
> > > listserv@(protected) and include in the body of the message "help".
> > >
> > >
> > >
> > >
> >
> > --
> > *****************************
> > Ranjeeth kumar,
> > SCEA
> > *************************************
> >
> >
> ========================================================================
> > ===
> > To unsubscribe, send email to listserv@(protected) and include in the
> > body
> > of the message "signoff J2EE-INTEREST".  For general help, send email
> to
> > listserv@(protected) and include in the body of the message "help".
> >
> > DISCLAIMER:
> > This message contains privileged and confidential information and is
> intended only for the individual named.If you are not the intended
> recipient you should not disseminate,distribute,store,print, copy or
> deliver this message.Please notify the sender immediately by e-mail if
> you have received this e-mail by mistake and delete this e-mail from
> your system.E-mail transmission cannot be guaranteed to be secure or
> error-free as information could be
> intercepted,corrupted,lost,destroyed,arrive late or incomplete or
> contain viruses.The sender therefore does not accept liability for any
> errors or omissions in the contents of this message which arise as a
> result of e-mail transmission. If verification is required please
> request a hard-copy version.
> >
> >
> ========================================================================
> ===
> > To unsubscribe, send email to listserv@(protected) and include in the
> body
> > of the message "signoff J2EE-INTEREST".  For general help, send email
> to
> > listserv@(protected) and include in the body of the message "help".
> >
>
> ========================================================================
> ===
> To unsubscribe, send email to listserv@(protected) and include in the
> body
> of the message "signoff J2EE-INTEREST".  For general help, send email to
> listserv@(protected) and include in the body of the message "help".
>
> DISCLAIMER:
> This message contains privileged and confidential information and is intended
only for the individual named.If you are not the intended recipient you should
not disseminate,distribute,store,print, copy or deliver this message.Please
notify the sender immediately by e-mail if you have received this e-mail by
mistake and delete this e-mail from your system.E-mail transmission cannot be
guaranteed to be secure or error-free as information could be intercepted
,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The
sender therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version.
>

===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".

©2008 junlu.com - Jax Systems, LLC, U.S.A.