Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/**
 * This file belongs to the BPELUnit utility and Eclipse plugin set. See enclosed
 * license file for more information.
 */

import javax.xml.namespace.QName;

import org.w3c.dom.Node;

public class Main {
    public static QName getQName(Node n) {
        if (n.getLocalName() != null) {
            return new QName(n.getNamespaceURI(), n.getLocalName());
        } else {
            return new QName(n.getNamespaceURI(), n.getNodeName());
        }
    }
}