public override bool ReadAttributeValue () { if (entity != null && entityInsideAttribute) { if (entity.EOF) entity = null; else { entity.Read (); return true; // either success or EndEntity } } return Current.ReadAttributeValue (); }