# `Wenche.BrgXml`
[🔗](https://github.com/jarls-side-projects/elixir-wenche/blob/main/lib/wenche/brg_xml.ex#L1)

Generates BRG XML documents for annual statement submission to Bronnøysundregistrene.

Ported from `wenche/brg_xml.py` in the original Python Wenche project.

Two separate XML documents are required:
- **Hovedskjema** (dataFormatId=1266): company info, fiscal year, accounting principles
- **Underskjema** (dataFormatId=758): income statement and balance sheet figures

Namespace and orid values are from BRG's official documentation:
https://brreg.github.io/docs/apidokumentasjon/regnskapsregisteret/maskinell-innrapportering/

# `generer_hovedskjema`

Generates Hovedskjema XML (dataFormatId=1266) for BRG annual statement.
Contains company info, accounting period, principles, and confirmation.

Returns UTF-8 encoded XML bytes.

# `generer_underskjema`

Generates Underskjema XML (dataFormatId=758) — income statement and balance sheet.

Returns UTF-8 encoded XML bytes.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
