Exemple #1
0
        public void Skip()
        {
            if (_emptyElemReadState == EmptyElemCompabilityState.EmptyElementEntered)
            {
                _emptyElemReadState = EmptyElemCompabilityState.EmptyElementRead;
                return;
            }

            V8CompatibleSkip();
            CheckEmptyElementEntering();
        }
Exemple #2
0
 private void CheckEmptyElementEntering()
 {
     _attributesLoopReset = false;
     if (_reader.IsEmptyElement)
     {
         _emptyElemReadState = EmptyElemCompabilityState.EmptyElementEntered;
     }
     else
     {
         _emptyElemReadState = EmptyElemCompabilityState.Off;
     }
 }
Exemple #3
0
 public bool Read()
 {
     if (_emptyElemReadState == EmptyElemCompabilityState.EmptyElementEntered)
     {
         _emptyElemReadState = EmptyElemCompabilityState.EmptyElementRead;
         return(true);
     }
     else
     {
         bool readingDone = _reader.Read();
         CheckEmptyElementEntering();
         return(readingDone);
     }
 }