Closed tomtkarl closed 11 years ago
Following from #27 #28 and #29, need a recursive data structure to allow for flexibility and customisation.
Suggest a tree structure. parsing to Message will involve recursively adding nodes as they are encountered in the format (SOAP).
parsing to Format can be accomplished using the Visitor pattern in a Depth-First search of the tree.
Visitor pattern not needed - parsing libraries don't really work like that,
Following from #27 #28 and #29, need a recursive data structure to allow for flexibility and customisation.
Suggest a tree structure. parsing to Message will involve recursively adding nodes as they are encountered in the format (SOAP).
parsing to Format can be accomplished using the Visitor pattern in a Depth-First search of the tree.