Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import javax.xml.namespace.QName;

public class Main {
    public static String serializeQName(QName qname) {
        String prefix = qname.getPrefix();
        if (prefix.isEmpty()) {
            return qname.getLocalPart();
        }
        return prefix + ":" + qname.getLocalPart();
    }
}