Example #1
0
 @Override
 public org.w3c.dom.Node w3c(Document doc) {
   Element e = doc.createElement(_name);
   if (_attributes != null) {
     for (ERXML.Attr attribute : _attributes) {
       e.setAttribute(attribute.name(), attribute.value());
     }
   }
   if (_children != null) {
     for (ERXML.Node child : _children) {
       org.w3c.dom.Node childNode = child.w3c(doc);
       e.appendChild(childNode);
     }
   }
   return e;
 }