SAX PARSING DESIGN PATTERN
- From: "javerra" <tnavarra@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 28 Mar 2007 10:37:45 -0700
Hello all. Just looking for everyones thoughts on this.
I am parsing out an xml document using a sax parser. I create a new
object representing my XML at the root in the StartElement method of
my record handler and fill the object with the appropriate data at the
EndElement method.
This works fine for for XML structures that contain 0 or 1 child
elements. My question is for XML elements that can have children with
more that one occurrence what would be the best way to design my
objects. Is an inner class appropriate for this scenario? This has
to be a fairly common thing encountered every day but all of the SAX
examples I've see have only worked with very small generic XML
documents.
Your thoughts are appreciated.
Regards
.
- Follow-Ups:
- Re: SAX PARSING DESIGN PATTERN
- From: Lew
- Re: SAX PARSING DESIGN PATTERN
- Prev by Date: Help regarding Posting of Java Job requirements in USA
- Next by Date: Servlet spec 2.4 doesn't know context path and initialization time???
- Previous by thread: Help regarding Posting of Java Job requirements in USA
- Next by thread: Re: SAX PARSING DESIGN PATTERN
- Index(es):
Relevant Pages
|