The ElementFactoryImpl class contains the following methods:
createElement retrieves a new element for the specified tag and type.
parsed is called when the element is fully parsed.
parsedAttribute is called when a new attribute is parsed for the given element.