Attribute(java.lang.String name, java.lang.String value, Namespace namespace)Namespace ns = Namespace.getNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
Attribute att=new Attribute("noNamespaceSchemaLocation","Yepp.xsd",ns);
Attribute att=new Attribute("noNamespaceSchemaLocation","Yepp.xsd",ns);
Namespace ns = Namespace.getNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
Attribute att=new Attribute("noNamespaceSchemaLocation","Yepp.xsd",ns);
yepp.setAttribute(att);
Document document=new Document(yepp);
// Strip formatting
DataUnformatFilter format = new DataUnformatFilter();
builder.setXMLFilter(format);
Document doc = builder.build(new File("XXX.xml"));