Example usage for org.dom4j Namespace detach

List of usage examples for org.dom4j Namespace detach

Introduction

In this page you can find the example usage for org.dom4j Namespace detach.

Prototype

public Node detach() 

Source Link

Usage

From source file:org.mule.intents.AppBuilder.java

License:Open Source License

protected void addNamespaces(Document snippet) {
    List<Namespace> ns = snippet.getRootElement().declaredNamespaces();
    for (Namespace n : ns) {
        config.getRootElement().add(n.detach());
    }/*from   www .  j  a  v a  2 s . c  o  m*/
}

From source file:org.selenium.runner.dao.NameSpaceCleaner.java

License:Apache License

/**
 * {@inheritDoc}
 */
public void visit(Namespace namespace) {
    namespace.detach();
}