private void readObject(final ObjectInputStream in)
    throws IOException, ClassNotFoundException {

    in.defaultReadObject();

    content = new ContentList(this);

    int nss = in.readInt();

    while (--nss >= 0) {
      addNamespaceDeclaration((Namespace)in.readObject());
    }

    int ats = in.readInt();
    while (--ats >= 0) {
      setAttribute((Attribute)in.readObject());
    }

    int cs = in.readInt();
    while (--cs >= 0) {
      addContent((Content)in.readObject());
    }
  }
private void readObject(final ObjectInputStream in)