public void insertChild(IXMLElement child, int index) {
    if (child == null) {
      throw new IllegalArgumentException("child must not be null");
    }
    if ((child.getName() == null) && (!children.isEmpty())) {
      IXMLElement lastChild = children.get(children.size() - 1);
      if (lastChild.getName() == null) {
        lastChild.setContent(lastChild.getContent() + child.getContent());
        return;
      }
    }
    ((XMLElement)child).parent = this;
    children.add(index, child);
  }
public void insertChild(IXMLElement child, int index)