Esempio n. 1
0
        private RelaxngAnyName ReadNameClassAnyName()
        {
            RelaxngAnyName an = new RelaxngAnyName();

            FillLocation(an);
            if (!IsEmptyElement)
            {
                Read();
                if (NodeType == XmlNodeType.EndElement)
                {
                }
                else
                {
                    // expect except
                    expect("except");
                    Read();
                    an.Except = new RelaxngExceptNameClass();
                    FillLocation(an.Except);
                    while (NodeType == XmlNodeType.Element)
                    {
                        an.Except.Names.Add(
                            ReadNameClass());
                    }
                    expectEnd("except");
                }
                expectEnd("anyName");
            }
            else
            {
                Read();
            }
            return(an);
        }
Esempio n. 2
0
		private RelaxngAnyName ReadNameClassAnyName ()
		{
			RelaxngAnyName an = new RelaxngAnyName ();
			FillLocation (an);
			if (!IsEmptyElement) {
				Read ();
				if (NodeType == XmlNodeType.EndElement) {
				} else {
					// expect except
					expect ("except");
					Read ();
					an.Except = new RelaxngExceptNameClass ();
					FillLocation (an.Except);
					while (NodeType == XmlNodeType.Element)
						an.Except.Names.Add (
							ReadNameClass ());
					expectEnd ("except");
				}
				expectEnd ("anyName");
			} else
				Read ();
			return an;
		}
Esempio n. 3
0
		public void WriteAnyName (RelaxngAnyName n)
		{
			w.Write ('*');
			if (n.Except != null)
				n.Except.WriteRnc (this);
		}