static String validatePrefix ( String prefix , boolean namespaceAware , String namespaceURI ) { if ( ! namespaceAware ) { throw new DOMException ( DOMException . NAMESPACE_ERR , prefix ) ; } if ( prefix != null ) { if ( namespaceURI == null || ! DocumentImpl . isXMLIdentifier ( prefix ) || "xml" . equals ( prefix ) && ! "http://www.w3.org/XML/1998/namespace" . equals ( namespaceURI ) || "xmlns" . equals ( prefix ) && ! "http://www.w3.org/2000/xmlns/" . equals ( namespaceURI ) ) { throw new DOMException ( DOMException . NAMESPACE_ERR , prefix ) ; } } return prefix ; }
Validates the element or attribute namespace prefix on this node .