added base api classes for XML parsers