Skip to content
A

Overview

The pages under API are generated from the library’s TypeScript source and TSDoc comments. This page summarises the main entry points.

BROParser is the entry class. Construct it with an XMLAdapter for your environment, then call one of the parse methods.

MethodReturnsDescription
parse(xml)BRODataDetect the type and parse
parseCPT(xml)CPTDataParse a CPT file
parseBHRGT(xml)BHRGTDataParse a BHR-GT file
parseBHRG(xml)BHRGDataParse a BHR-G file
parseCustom(xml, schema, type?)TParse with a custom schema
  • resolvers holds the built-in field converters used in custom schemas.
  • presets holds ready-made schemas for common extractions.
TypeSchema version
CPTdscpt/1.1
BHR-GTdsbhr-gt/2.1
BHR-Gdsbhrg/3.1