Saxon.Api

Class DocumentBuilder

Class DomDestination

Class DynamicContext

Class DynamicError

Class EmptyEnumerator

Class ExtensionFunctionCall

Class ExtensionFunctionDefinition

Class InvalidityHandlerWrapper

Class NamespaceConstant

Class NullDestination

Class Processor

Class QName

Class SchemaManager

Class SchemaValidator

Class Serializer

Class StandardLogger

Class StaticContext

Class StaticError

Class TextWriterDestination

Class XPathCompiler

Class XPathExecutable

Class XPathSelector

Class XQueryCompiler

Class XQueryEvaluator

Class XQueryExecutable

Class XdmAnyFunctionType

Class XdmAnyItemType

Class XdmAnyNodeType

Class XdmAtomicType

Class XdmAtomicValue

Class XdmDestination

  - Class TreeProtector

Class XdmEmptySequence

Class XdmFunctionItem

Class XdmItem

Class XdmItemType

Class XdmNode

Class XdmNodeKind

Class XdmSequenceType

Class XdmValue

Class XmlDestination

Class Xslt30Transformer

Class XsltCompiler

Class XsltExecutable

  - Class ParameterDetails

Class XsltPackage

Class XsltTransformer

Enum RecoveryPolicy

Enum SchemaValidationMode

Enum TreeModel

Enum WhitespacePolicy

Enum XdmAxis

Interface IInvalidityHandler

Interface IMessageListener

Interface IQueryResolver

Interface IResultDocumentHandler

Interface IXdmEnumerator

Interface IXmlLocation

Interface SchemaResolver

 

Saxon.Api
Class XdmNodeKind


public class XdmNodeKind
extends XdmItemType

Instances of XdmNodeKind represent the item types denoted in XPath as document-node(), element(), attribute(), text(), and so on. These are all represented by singular named instances.


Field Summary
static XdmNodeKind Document

The item type document-node()

static XdmNodeKind Element

The item type element()

static XdmNodeKind Attribute

The item type attribute()

static XdmNodeKind Text

The item type text()

static XdmNodeKind Comment

The item type comment()

static XdmNodeKind ProcessingInstruction

The item type processing-instruction()

static XdmNodeKind Namespace

The item type namespace-node()

 
Method Summary
static XdmNodeKind ForNode(XdmNode node)

Get the item type representing the node kind of a supplied node

static XdmNodeKind ForNodeType(System.Xml.XmlNodeType type)

Get the item type corresponding to an XmlNodeType as defined in the System.Xml package

 
Field Detail

Document

public static XdmNodeKind Document

The item type document-node()


Element

public static XdmNodeKind Element

The item type element()


Attribute

public static XdmNodeKind Attribute

The item type attribute()


Text

public static XdmNodeKind Text

The item type text()


Comment

public static XdmNodeKind Comment

The item type comment()


ProcessingInstruction

public static XdmNodeKind ProcessingInstruction

The item type processing-instruction()


Namespace

public static XdmNodeKind Namespace

The item type namespace-node()


Method Detail

ForNode

public static XdmNodeKind ForNode(XdmNode node)

Get the item type representing the node kind of a supplied node

Parameters:
node -
The node whose node kind is required
Returns:
The relevant node kind

ForNodeType

public static XdmNodeKind ForNodeType(System.Xml.XmlNodeType type)

Get the item type corresponding to an XmlNodeType as defined in the System.Xml package

Parameters:
type -
The XmlNodeType to be converted
Returns:
The corresponding XdmNodeKind