WriteState.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
  2. //
  3. // System.Xml.WriteState
  4. //
  5. // Author:
  6. // Daniel Weber ([email protected])
  7. //
  8. // (C) 2001 Daniel Weber
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. namespace System.Xml
  30. {
  31. /// <summary>
  32. /// </summary>
  33. public enum WriteState {
  34. /// <summary>
  35. /// A write method has not been called.
  36. /// </summary>
  37. Start = 0,
  38. /// <summary>
  39. /// The prolog is being written.
  40. /// </summary>
  41. Prolog = 1,
  42. /// <summary>
  43. /// An element start tag is being written.
  44. /// </summary>
  45. Element = 2,
  46. /// <summary>
  47. /// An attribute is being written.
  48. /// </summary>
  49. Attribute = 3,
  50. /// <summary>
  51. /// Element content is being written.
  52. /// </summary>
  53. Content = 4,
  54. /// <summary>
  55. /// The close method has been called.
  56. /// </summary>
  57. Closed = 5,
  58. #if NET_2_0
  59. /// <summary>
  60. /// After an error has happened.
  61. /// </summary>
  62. Error = 6,
  63. #endif
  64. }
  65. }