while (aElement != null) {
Node node = aElement.getFirstChild();
while (node != null) {
Node thisNode = node;
node = node.getNextSibling();
aElement.removeChild(thisNode);
parent.insertBefore(thisNode, aElement);
}
TextAElement thisElement = aElement;
aElement = OdfElement.findNextChildNode(TextAElement.class, aElement);
parent.removeChild(thisElement);