J
javerra
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
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