Example usage for org.dom4j.tree DefaultElement getNamespace

List of usage examples for org.dom4j.tree DefaultElement getNamespace

Introduction

In this page you can find the example usage for org.dom4j.tree DefaultElement getNamespace.

Prototype

public Namespace getNamespace() 

Source Link

Usage

From source file:org.olat.ims.cp.objects.CPManifest.java

License:Apache License

/**
 * this constructor is used when building up the cp (parsing XML)
 * // ww w .  j a  v a  2s . c  o  m
 * @param me
 */
public CPManifest(final CPCore cp, final DefaultElement me) {
    super(me.getName());
    log = Logger.getLogger(CPManifest.class);
    errors = new Vector<String>();
    this.identifier = me.attributeValue(CPCore.IDENTIFIER);
    this.schemaLocation = me.attributeValue(CPCore.SCHEMALOCATION);
    this.setNamespace(me.getNamespace());
    this.cp = cp;
    // FIXME: namespaces ! xmlns
    setContent(me.content());
}