}
/** read a xml definiton file and put only NEW fields into the field list */
private void readXML( String resName )
{
TXMLReader reader = new TXMLReader(resName) ;
if (reader.isReady() )
{
// get a list of all fields
NodeList fieldNodes = reader.getNodes("field") ;
int tagsCount = fieldNodes.getLength() ;
for (int t = 0 ; t < tagsCount ; t++)
{
Element entry = (Element) fieldNodes.item(t) ;
String fName = reader.readStringAttribute(entry, "name", null) ;
if (fName != null) // something found ?
{
fName = fName.toLowerCase() ;
BibtexSingleField dummy = fieldSet.get( fName ) ;
if (dummy == null) // unknown field