Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

public class Main {
    public static String getField(NamedNodeMap fields, String fieldName) {
        Node field = fields.getNamedItem(fieldName);

        if (field != null)
            return field.getNodeValue();
        else
            return new String();
    }
}