Ejemplo n.º 1
0
  @Override
  public String toString() {
    //    ECMA357 10.1.2
    if (hasSimpleContent()) {
      StringBuffer sb = new StringBuffer();

      for (int i = 0; i < length(); i++) {
        XML next = getXmlFromAnnotation(i);
        if (next.isComment() || next.isProcessingInstruction()) {
          //    do nothing
        } else {
          sb.append(next.toString());
        }
      }

      return sb.toString();
    } else {
      return toXMLString();
    }
  }