Re: Problem with nested tags in xml
Re: Problem with nested tags in xml
- Subject: Re: Problem with nested tags in xml
- From: Ariel Rodriguez <email@hidden>
- Date: Wed, 12 Nov 2008 22:22:33 -0200
This is a classic example of where to use a finite state machine:
<http://en.wikipedia.org/wiki/Finite_state_machine>
Basically, you have an initial state and then an "inside country"
state. Then inside your
parser:didEndElement:namespaceURI:qualifiedName: you behave
differently based on the current state.
thanks Stephen for your kind response. I think i've grasp the theory,
but i am not qite sure about the best way to implement the algorithm.
Perhaps to set a flag to indicate wether the "country" object is the
root one or the nested one?
Again, thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden