// create binding with optional namespace
BindingElement binding = new BindingElement();
binding.setStyleName("attribute");
if (m_namespaceUri != null) {
NamespaceElement namespace = new NamespaceElement();
namespace.setComment(" namespace for all elements of binding ");
namespace.setDefaultName("elements");
namespace.setUri(m_namespaceUri);
binding.addTopChild(namespace);
}
// add mapping for each specified class
m_structureStack.clear();