Skip to content

minidom: Allow to provide a default namespace (ref #41)

Michaël Melchiore requested to merge rohel01/xmpp-rs:default-namespace into main

This commit adds an explicit parser which can be configured with a default namespace:

  • Current API are unaffected
  • A unit test has been added

I used Parser instead of Reader since the latter term was already used quite often with a different meaning, bit I am happy to change to any other name of your convenience I tried to mimic existing design conventions (ex: build pattern, error management) so providing more than one default namespace will trigger a DuplicatedPrefix error. Also, the current ElementParserBuilder API also allows adding more prefix to be taken into account for the actual parsing. This is quite flexible but can be removed if necessary

Merge request reports