Below is a practice about refactoring to adapter pattern:
- Extract Interface (ITagNode)
- Replace Element with ITagNode in DomBuilder and XMLBuilder
- Pull method to AbstractBuilder
- Remove duplicated codes
Below is a practice about refactoring to adapter pattern: