@nodecfdi/cfdi-cleaner
Version:
Librería para limpiar comprobantes fiscales digitales v3.3 y v4.0
18 lines (17 loc) • 656 B
TypeScript
import { type Attr, type Document, type Element } from '@nodecfdi/cfdi-core';
export default class CfdiXPath {
private static readonly ALLOWED_NAMESPACES;
private readonly _document;
private readonly _namespaces?;
constructor(document: Document, namespaces?: Record<string, string>);
static createFromDocument(document: Document): CfdiXPath;
queryElements<T extends Element>(xpathQuery: string): T[];
queryAttributes<T extends Attr>(xpathQuery: string): T[];
/**
* Get all XMLSchema instance attributes schemaLocation
*
* @returns Attr[]
*/
querySchemaLocations(): Attr[];
private querySelect;
}