SAX PARSING DESIGN PATTERN



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

.



Relevant Pages

  • RE: XML documentation file name
    ... MSDN document on VB.NET Project Designer says "The Generate XML document ... XML documentation is automatically emitted into an XML ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.languages.vb)
  • Re: XMLTextReader reading too many characters
    ... It was a very simple process to delete the extra tag. ... You do know about XML ... status isn't indicative of being capable of editing an XML document. ... If you claim there is a problem with XmlTextReader and an allegedly ...
    (microsoft.public.dotnet.xml)
  • Re: Storing hierarchies from XML into relational tables
    ... You haven't made clear what sort of relational tables you plan to use to store the data from your hierarchy. ... Parent VARCHAR ... Given an xml document that represents a heirarchy: ...
    (microsoft.public.sqlserver.xml)
  • XPathNavigator SetValue wipes out XmlType
    ... I have an xml document that I want to go through and set the values on ... I can iterate the document and get my XmlType and XmlBaseType values just ... Xml and Program.cs to recreate the problem. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: application communication in xml without webservices?
    ... could POST an XML document to a URL over HTTP. ... It could then repeat this process, making plain old HTTP requests ... In your request you asked whether sending your XML in SOAP will help - it ...
    (microsoft.public.dotnet.framework.aspnet.webservices)