internal void RemoveNode(ILinkedElement elem)
        {
            AssertModifiable();
            var lastElem = _content as ILinkedElement;

            if (lastElem == null)
            {
                return;
            }
            _content = LinkedListOps.Remove(lastElem, elem);
        }
 internal void RemoveAttribute(Attribute attr)
 {
     AssertModifiable();
     LinkedListOps.Remove(ref _lastAttr, attr);
 }