Skip to content

2022 03 19 Use xmlBuilder2 instead of xmlBuilder

Sebastien edited this page Mar 21, 2022 · 1 revision

Use xmlBuilder2 instead of xmlBuilder

  • Status: accepted
  • Date: 2022-03-19

Technical Story: #269

Context and Problem Statement

xmlBuilder is not maintained anymore. It does not benefit from language improvements, bug fixes, and dependency upgrades

Decision Drivers

  • Security: we need to rely on regularly updated library against security issue
  • Stability: we need to rely on stable library

Considered Options

Decision Outcome

Chosen option: "xmlBuilder2", because the refactoring is straight forward and easy.

Positive Consequences

  • We rely on a maintained library

Negative Consequences

  • We still have two libraries to deal with XML

Pros and Cons of the Options

xmlBuilder2

  • Good, because easy to migrate from xmlBuilder
  • Good, because maintained
  • Bad, because 2 libraries to deal with xml
  • Bad, because slow library

fast-xml-parser

{example | description | pointer to more information | …}

  • Good, One library to deal with xml
  • Good, fastest library
  • Bad, because needs a lot of refactoring in packageConstructor.js