IDEX-1530: fixed offset detection
IDEX-1530: add ability to register namespaces while parsing xml