Here you can find the source of splitQName(String qualifiedName)
public static String[] splitQName(String qualifiedName)
//package com.java2s; import javax.xml.XMLConstants; public class Main { public static String[] splitQName(String qualifiedName) { if (qualifiedName == null) { throw new IllegalArgumentException("Null QName"); }/*from www.j a v a2 s . co m*/ int idx = qualifiedName.indexOf(':'); String[] parts = { null, null }; if (idx >= 0) { parts[0] = qualifiedName.substring(0, idx); parts[1] = qualifiedName.substring(idx + 1); } else { parts[0] = XMLConstants.DEFAULT_NS_PREFIX; parts[1] = qualifiedName; } return parts; } }