public override bool MoveToAttribute (string name) { if (entity != null && !entityInsideAttribute) return entity.MoveToAttribute (name); if (!source.MoveToAttribute (name)) return false; if (entity != null && entityInsideAttribute) { entity.Close (); entity = null; } insideAttribute = true; return true; }