An axis defines a node-set relative to the current node. AxisNameResult ancestor Selects all ancestors (parent, grandparent, etc.) of the current node ancestor-or-self Selects all ancestors (parent, grandparent, etc.) of the current node and the current node itself attribute Selects all attributes of the current node child Selects all children of the current node descendant Selects all descendan..
OperatorDescriptionExampleReturn value | Computes two node-sets //book | //cd Returns a node-set with all book and cd elements + Addition 6 + 4 10 - Subtraction 6 - 4 2 * Multiplication 6 * 4 24 div Division 8 div 4 2 = Equal price=9.80 true if price is 9.80 false if price is 9.90 != Not equal price!=9.80 true if price is 9.90 false if price is 9.80 =9.80 true if price is 9.90 false if price is ..
Accessor Functions NameDescription fn:node-name(node) Returns the node-name of the argument node fn:nilled(node) Returns a Boolean value indicating whether the argument node is nilled fn:data(item.item,...) Takes a sequence of items and returns a sequence of atomic values fn:base-uri() fn:base-uri(node) Returns the value of the base-uri property of the current or specified node fn:document-uri(n..
Selecting NodesXPath uses path expressions to select nodes in an XML document. The node is selected by following a path or steps. The most useful path expressions are listed below: ExpressionDescription nodename Selects all child nodes of the named node / Selects from the root node // Selects nodes in the document from the current node that match the selection no matter where they are . Selects ..
먼저 xml 파일을 로드 하는것 부터 알아보자. 아래와 같이 로드 하는 방법이 있는데 IE에서는 잘되지만 파이어폭스, 크롬, 오페라, 사파리 에서는 잘 되지 않았다. 내가 뭔가를 잘 몰라서 그러는듯 하다. 지금까지 IE에서만 작업을 해오다 보니 타 브라우져에서는 어떻게 되는질 모르겠다. var xmldom = null; if(window.ActiveXObject) { xmldom = new ActiveXObject("Microsoft.XMLDOM"); alert(this._xmlDom); } else if(document.implementation && document.implementation.createDocument) { xmldom = document.implementation.createDocu..
- Total
- Today
- Yesterday