Skip to content

Documentation / @facturometro/einvoice / EmptyElement

Interface: EmptyElement ​

Defined in: packages/validator/src/engine/view.ts:182

An element with neither child elements nor text, as PEPPOL-EN16931-R008 defines it (//*[not(*) and not(normalize-space())]).

Example ​

ts
import type { EmptyElement } from '@facturometro/validator';

const names = (empty: readonly EmptyElement[]) => empty.map((element) => element.name);

Properties ​

name ​

readonly name: string

Defined in: packages/validator/src/engine/view.ts:184

Local element name.


path ​

readonly path: ModelPath

Defined in: packages/validator/src/engine/view.ts:186

Model path of the element.

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.