Represents an object for parsing XML and extracting JSON.

interface ParseObject {
    IsXml: ((xml: string) => boolean);
    ParseXml: ((xml: string) => any);
    ToJsonExtractor: ((obj: any) => JsonExtractorObject);
}

Properties

IsXml: ((xml: string) => boolean)

Checks if a string is valid XML.

Type declaration

    • (xml): boolean
    • Parameters

      • xml: string

        The string to check.

      Returns boolean

      true if the string is valid XML, otherwise false.

ParseXml: ((xml: string) => any)

Parses XML string into an object.

Type declaration

    • (xml): any
    • Parameters

      • xml: string

        The XML string to parse.

      Returns any

      The parsed object.

ToJsonExtractor: ((obj: any) => JsonExtractorObject)

Converts an object to a JSON extractor object.

Type declaration