support both formats for ledger xml