ODOMElement fromRoot = (ODOMElement) factory.element("root");
ODOMElement fromChild1 = (ODOMElement) factory.element("child");
ODOMElement fromChild2 = (ODOMElement) factory.element("child");
fromRoot.addContent(fromChild1);
fromRoot.addContent(fromChild2);
factory.document(fromRoot);
ODOMChangeListener rootListener = createODOMChangeListener();
fromRoot.addChangeListener(rootListener);
fromRoot.addChangeListener(rootListener, ChangeQualifier.NAME);