public static void replaceNamespace(Document doc, String newNamespaceURI) {
    """
	Replace the namespace of any {@link Element} in a {@link Document}.
	
	@param doc             the document to update
	@param newNamespaceURI the new namespace URI
    """
        NodeList children = doc.getChildNodes();
        for (int i = 0; i < children.getLength(); i++) {
            XmlUtils.replaceNamespace(doc, children.item(i), newNamespaceURI);
        }
    }
public static void replaceNamespace(Document doc, String newNamespaceURI) {
        NodeList children = doc.getChildNodes();
        for (int i = 0; i < children.getLength(); i++) {
            XmlUtils.replaceNamespace(doc, children.item(i), newNamespaceURI);
        }
    }
public static void replaceNamespace ( Document doc , String newNamespaceURI ) { NodeList children = doc . getChildNodes ( ) ; for ( int i = 0 ; i < children . getLength ( ) ; i ++ ) { XmlUtils . replaceNamespace ( doc , children . item ( i ) , newNamespaceURI ) ; } }
Replace the namespace of any {@link Element} in a {@link Document}.

@param doc             the document to update
@param newNamespaceURI the new namespace URI
Replace the namespace of any { @link Element } in a { @link Document } .