MCPcopy Create free account
hub / github.com/NaturalIntelligence/fast-xml-parser / XMLParser

Class XMLParser

src/fxp.d.ts:699–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697};
698
699export class XMLParser {
700 constructor(options?: X2jOptions);
701
702 parse(xmlData: string | Uint8Array): any;
703 /**
704 * @deprecated The `validationOptions` parameter is deprecated.
705 * Use the `fast-xml-validator` package instead for XML validation.
706 * @see https://www.npmjs.com/package/fast-xml-validator
707 */
708 parse(xmlData: string | Uint8Array, validationOptions: validationOptions | boolean): any;
709 /**
710 * Add Entity which is not by default supported by this library
711 * @param entityIdentifier {string} Eg: 'ent' for &ent;
712 * @param entityValue {string} Eg: '\r'
713 * @deprecated Use `entityDecoder` instead
714 */
715 addEntity(entityIdentifier: string, entityValue: string): void;
716
717 /**
718 * Returns a Symbol that can be used to access the {@link XMLMetaData}
719 * property on a node.
720 *
721 * If Symbol is not available in the environment, an ordinary property is used
722 * and the name of the property is here returned.
723 *
724 * The XMLMetaData property is only present when {@link X2jOptions.captureMetaData}
725 * is true in the options.
726 */
727 static getMetaDataSymbol(): Symbol;
728}
729
730/**
731 * @deprecated Use fast-xml-validator instead

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected