Code example for NamedNodeMap

Methods: getNamedItem

0
 */ 
public abstract class APIUtil 
{ 
    public static String getField( NamedNodeMap fields, String fieldName )
    { 
        Node field = fields.getNamedItem( fieldName );
 
        if( field != null )
            return field.getNodeValue();
        else 
            return new String();
    } 
}