DTMXPathNode.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. using System;
  13. using System.Xml.XPath;
  14. namespace Mono.Xml.XPath
  15. {
  16. #if OUTSIDE_SYSTEM_XML
  17. public
  18. #else
  19. internal
  20. #endif
  21. #if DTM_CLASS
  22. class DTMXPathLinkedNode
  23. #else
  24. struct DTMXPathLinkedNode
  25. #endif
  26. {
  27. public int FirstChild;
  28. public int Parent;
  29. public int PreviousSibling;
  30. public int NextSibling;
  31. public int FirstAttribute;
  32. public int FirstNamespace;
  33. public int Depth;
  34. public XPathNodeType NodeType;
  35. public string BaseURI;
  36. public bool IsEmptyElement;
  37. public string LocalName;
  38. public string NamespaceURI;
  39. public string Prefix;
  40. public string Value;
  41. public string XmlLang;
  42. public int LineNumber;
  43. public int LinePosition;
  44. }
  45. #if OUTSIDE_SYSTEM_XML
  46. public
  47. #else
  48. internal
  49. #endif
  50. #if DTM_CLASS
  51. class DTMXPathAttributeNode
  52. #else
  53. struct DTMXPathAttributeNode
  54. #endif
  55. {
  56. public int OwnerElement;
  57. public int NextAttribute;
  58. public string LocalName;
  59. public string NamespaceURI;
  60. public string Prefix;
  61. public string Value;
  62. public object SchemaType;
  63. public int LineNumber;
  64. public int LinePosition;
  65. }
  66. #if OUTSIDE_SYSTEM_XML
  67. public
  68. #else
  69. internal
  70. #endif
  71. #if DTM_CLASS
  72. class DTMXPathNamespaceNode
  73. #else
  74. struct DTMXPathNamespaceNode
  75. #endif
  76. {
  77. public int DeclaredElement;
  78. public int NextNamespace;
  79. public string Name;
  80. public string Namespace;
  81. }
  82. }