Design pattern to create DOM tree

Please give me suggestion to select a design pattern to create XML DOM tree from a text file. Note each line represents one xml node and there are relationships between nodes.


  • Did you try the interpreter, factory, composite, etc.? For the DOM there are already implementations that use these patterns....look at a standard implementation.