Exemple #1
0
		private RelaxngExceptNameClass ReadNameClassExcept ()
		{
			RelaxngExceptNameClass x = new RelaxngExceptNameClass ();
			FillLocation (x);
			if (IsEmptyElement)
				throw new RelaxngException ("Name choice must have at least one name class.");

			Read ();
			while (NodeType != XmlNodeType.EndElement)
				x.Names.Add (ReadNameClass ());
			if (x.Names.Count == 0)
				throw new RelaxngException ("Name choice must have at least one name class.");

			expectEnd ("except");
			return x;
		}
Exemple #2
0
		public void WriteNameExcept (RelaxngExceptNameClass e)
		{
			w.Write (" - ");
			WriteNames (e.Names, true);
		}