API ReferenceFunctions
whichIs()
@finopenpos/fiscal / whichIs
function whichIs(xml): string;Defined in: standardize.ts:90
Identify which NFe document type an XML string represents.
Parameters
| Parameter | Type |
|---|---|
xml | unknown |
Returns
string
The root tag name (e.g. 'NFe', 'nfeProc', 'retConsSitNFe')
Throws
If input is empty, not a string, not valid XML, or not an NFe document