DTMXPathNode2.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. //
  2. // Mono.Xml.XPath.DTMXPathNode2.cs
  3. //
  4. // Author:
  5. // Atsushi Enomoto <[email protected]>
  6. //
  7. // (C) 2004 Novell Inc
  8. //
  9. // These classes represent each node of DTMXPathNavigator.
  10. //
  11. //
  12. // Permission is hereby granted, free of charge, to any person obtaining
  13. // a copy of this software and associated documentation files (the
  14. // "Software"), to deal in the Software without restriction, including
  15. // without limitation the rights to use, copy, modify, merge, publish,
  16. // distribute, sublicense, and/or sell copies of the Software, and to
  17. // permit persons to whom the Software is furnished to do so, subject to
  18. // the following conditions:
  19. //
  20. // The above copyright notice and this permission notice shall be
  21. // included in all copies or substantial portions of the Software.
  22. //
  23. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  24. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  25. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  26. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  27. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  28. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  29. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  30. //
  31. using System;
  32. using System.Xml.XPath;
  33. namespace Mono.Xml.XPath
  34. {
  35. #if OUTSIDE_SYSTEM_XML
  36. public
  37. #else
  38. internal
  39. #endif
  40. #if DTM_CLASS
  41. class DTMXPathLinkedNode2
  42. #else
  43. struct DTMXPathLinkedNode2
  44. #endif
  45. {
  46. public int FirstChild;
  47. public int Parent;
  48. public int PreviousSibling;
  49. public int NextSibling;
  50. public int FirstAttribute;
  51. public int FirstNamespace;
  52. public XPathNodeType NodeType;
  53. public int BaseURI;
  54. public bool IsEmptyElement;
  55. public int LocalName;
  56. public int NamespaceURI;
  57. public int Prefix;
  58. public int Value;
  59. public int XmlLang;
  60. public int LineNumber;
  61. public int LinePosition;
  62. }
  63. #if OUTSIDE_SYSTEM_XML
  64. public
  65. #else
  66. internal
  67. #endif
  68. #if DTM_CLASS
  69. class DTMXPathAttributeNode2
  70. #else
  71. struct DTMXPathAttributeNode2
  72. #endif
  73. {
  74. public int OwnerElement;
  75. public int NextAttribute;
  76. public int LocalName;
  77. public int NamespaceURI;
  78. public int Prefix;
  79. public int Value;
  80. public int LineNumber;
  81. public int LinePosition;
  82. }
  83. #if OUTSIDE_SYSTEM_XML
  84. public
  85. #else
  86. internal
  87. #endif
  88. #if DTM_CLASS
  89. class DTMXPathNamespaceNode2
  90. #else
  91. struct DTMXPathNamespaceNode2
  92. #endif
  93. {
  94. public int DeclaredElement;
  95. public int NextNamespace;
  96. public int Name;
  97. public int Namespace;
  98. }
  99. }