DTMXPathNode.cs 2.5 KB

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