The Labs \ Source Viewer \ SSCLI \ System.Xml.Xsl \ XmlNodeKindFlags

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlNodeKindFlags.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. using System;
  16. namespace System.Xml.Xsl
  17. {
  18.    
  19.     /// <summary>
  20.     /// the xml node kind of a QIL expression
  21.     /// </summary>
  22.     [Flags()]
  23.     internal enum XmlNodeKindFlags
  24.     {
  25.         /// <summary>
  26.         /// no node kind
  27.         /// </summary>
  28.         None = 0,
  29.        
  30.         /// <summary>
  31.         /// document node kind
  32.         /// </summary>
  33.         Document = 1,
  34.        
  35.         /// <summary>
  36.         /// element node kind
  37.         /// </summary>
  38.         Element = 2,
  39.        
  40.         /// <summary>
  41.         /// attribute node
  42.         /// </summary>
  43.         Attribute = 4,
  44.        
  45.         /// <summary>
  46.         /// text node
  47.         /// </summary>
  48.         Text = 8,
  49.        
  50.         /// <summary>
  51.         /// comment node
  52.         /// </summary>
  53.         Comment = 16,
  54.        
  55.         /// <summary>
  56.         /// processing-instruction node
  57.         /// </summary>
  58.         PI = 32,
  59.        
  60.         /// <summary>
  61.         /// namespace node
  62.         /// </summary>
  63.         Namespace = 64,
  64.        
  65.         // convenience types
  66.        
  67.         /// <summary>
  68.         /// shortcut for any node that may appear in element content
  69.         /// </summary>
  70.         Content = Element | Comment | PI | Text,
  71.        
  72.         /// <summary>
  73.         /// shortcut for any node kind
  74.         /// </summary>
  75.         Any = 127
  76.     }
  77. }

Developer Fusion