クラス org.w3c.dom.xpath.XPathExceptionの
使用
-
org.w3c.dom.xpathでのXPathExceptionの使用
修飾子と型メソッド説明XPathEvaluator.createExpression
(String expression, XPathNSResolver resolver) 解決されたネームスペースを持つ解析済みXPath式を作成します。XPathEvaluator.evaluate
(String expression, Node contextNode, XPathNSResolver resolver, short type, Object result) XPath式の文字列を評価し、可能であれば指定された型の結果を返します。このXPath式を評価し、結果を返します。boolean
XPathResult.getBooleanValue()
このブール結果の値。double
XPathResult.getNumberValue()
この数値の値が返されます。XPathResult.getSingleNodeValue()
この単一ノードの結果の値は、null
です。int
XPathResult.getSnapshotLength()
結果スナップショット内のノード数。XPathResult.getStringValue()
この文字列の結果の値。XPathResult.iterateNext()
ノードセットから次のノードを反復して返します。ノードがない場合はnull
を返します。XPathResult.snapshotItem
(int index) スナップショット・コレクション内のindex
番目のアイテムを返します。