Customizing your own Tag Provider

In previous sections, BasicElementFactory is created using the constructor public BasicElementFactory(String fileName);. The BasicElementFactory created from this constructor reads the element definition form the file specified by fileName. The XML file can import some other XML files, for example:
<test.xml>
    <import file="abc.xml"/>
</test.xml> 
There is also another constructor for BasicElementFactory: public BasicElementFactory(TagProvider provider). This constructor accepts an argument in type of TagProvider. You can implement your own TagProvider to find your definition in your own way or even define the Tag in your own style (other than XML). Following is the interface definition of TagProvider:
public interface TagProvider {
	 public Tag getTag(String id) throws ConfigException;

}