"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd", xsi));
rootElement.setAttribute("version", "1.2");
} else if (is20()) {
rootElement.setNamespace(Namespace.getNamespace("http://java.sun.com/xml/ns/javaee"));
Namespace xsi = Namespace.getNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
rootElement.addNamespaceDeclaration(Namespace.getNamespace("xi", "http://www.w3.org/2001/XInclude"));
rootElement.setAttribute(new Attribute("schemaLocation",
"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd", xsi));
rootElement.setAttribute("version", "2.0");
}
Namespace namespace = rootElement.getNamespace();