Example #1
0
		public void StartElement ()
		{
NvdlDebug.Writer.WriteLine ("  <dispatcher.StartElement {0}. stack depth: {1}. current section ns {2}",
Reader.Name, sectionStack.Count, section == null ? "(none)" : section.Namespace);
			NvdlSection prev = section;
			section = GetSection (section);

			section.StartElement ();
			if (Reader.IsEmptyElement) {
				section.EndSection ();
				section = prev;
			} else {
				sectionStack.Push (section);
				qnameStack.Push (new XmlQualifiedName (Reader.LocalName, Reader.NamespaceURI));
			}
		}
Example #2
0
        public void StartElement()
        {
            NvdlDebug.Writer.WriteLine("  <dispatcher.StartElement {0}. stack depth: {1}. current section ns {2}",
                                       Reader.Name, sectionStack.Count, section == null ? "(none)" : section.Namespace);
            NvdlSection prev = section;

            section = GetSection(section);

            section.StartElement();
            if (Reader.IsEmptyElement)
            {
                section.EndSection();
                section = prev;
            }
            else
            {
                sectionStack.Push(section);
                qnameStack.Push(new XmlQualifiedName(Reader.LocalName, Reader.NamespaceURI));
            }
        }
Example #3
0
        public void EndElement()
        {
            NvdlDebug.Writer.WriteLine("  <dispatcher.EndElement {0}. depth: {1}",
                                       Reader.Name, sectionStack.Count);
            if (section != null)
            {
                section = sectionStack.Pop();
                section.EndElement();
                section.EndSection();
                if (sectionStack.Count > 0)
                {
                    section = sectionStack.Peek();
                }
                else
                {
                    section = null;
                }
            }

            qnameStack.Pop();
        }
Example #4
0
		public void EndElement ()
		{
NvdlDebug.Writer.WriteLine ("  <dispatcher.EndElement {0}. depth: {1}",
Reader.Name, sectionStack.Count);
			if (section != null) {
				section = sectionStack.Pop ();
				section.EndElement ();
				section.EndSection ();
				if (sectionStack.Count > 0)
					section = sectionStack.Peek ();
				else
					section = null;
			}

			qnameStack.Pop ();
		}