TXmlDocument::buildElement visibility changed

This allows derived classes to override the method's implementation