Exemplo n.º 1
0
        private bool DoRead(XmlItem rootItem)
        {
            ItemState itemState = ReadItem(rootItem);

            lastName = rootItem.Name;

            if (itemState == ItemState.End)
            {
                return(true);
            }
            else if (itemState == ItemState.Complete)
            {
                return(false);
            }

            if (ReadValue(rootItem))
            {
                return(false);
            }

            bool done = false;

            do
            {
                XmlItem childItem = new XmlItem();
                done = DoRead(childItem);
                if (!done)
                {
                    rootItem.AddItem(childItem);
                }
                else
                {
                    childItem.Dispose();
                }
            }while (!done);

            if (lastName != "" && String.Compare(lastName, rootItem.Name, true) != 0)
            {
                RaiseException();
            }

            return(false);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Disposes resources used by the document.
 /// </summary>
 public void Dispose()
 {
     root.Dispose();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Disposes resources used by the document.
 /// </summary>
 public void Dispose()
 {
     FRoot.Dispose();
 }