Liking cljdoc? Tell your friends :D

clj-xpath.lib


$xcljmultimethod

Perform an xpath query on the given XML document which may be a String, byte array, or InputStream. See xml->doc, and xp:compile.

Perform an xpath query on the given XML document which may be a String, byte array, or InputStream.
See xml->doc, and xp:compile.
sourceraw docstring

$x:attrsclj

($x:attrs xp-compiler xp xml & [opts])

Perform an xpath search, resulting in one and only one node. Return only the node's attrs.

Perform an xpath search, resulting in one and only one node.  Return only the node's attrs.
sourceraw docstring

$x:attrs*clj

($x:attrs* xp-compiler xp xml opts)
($x:attrs* xp-compiler xp xml attr-name opts)

Perform an xpath search, resulting in zero or more nodes. When an attr-name is passed, return only each the node's attrs.

Perform an xpath search, resulting in zero or more nodes.  When an attr-name is passed, return only each the node's attrs.
sourceraw docstring

$x:attrs+clj

($x:attrs+ xp-compiler xp xml & [opts])

Perform an xpath search, resulting in one or more nodes. Return only each the node's attrs.

Perform an xpath search, resulting in one or more nodes.  Return only each the node's attrs.
sourceraw docstring

$x:attrs?clj

($x:attrs? xp-compiler xp xml & [opts])

Perform an xpath search, resulting in zero or one node. Return only the node's attrs.

Perform an xpath search, resulting in zero or one node.  Return only the node's attrs.
sourceraw docstring

$x:nodeclj

($x:node xp-compiler xp xml & [opts])

Perform an xpath search, resulting in one and only one node. Returns the node.

Perform an xpath search, resulting in one and only one node.  Returns the node.
sourceraw docstring

$x:node*clj

($x:node* xp-compiler xp xml & [opts])

Perform an xpath search, resulting in zero or more nodes. Returns the nodes.

Perform an xpath search, resulting in zero or more nodes.  Returns the nodes.
sourceraw docstring

$x:node+clj

($x:node+ xp-compiler xp xml & [opts])

Perform an xpath search, resulting in one or more nodes. Returns the nodes.

Perform an xpath search, resulting in one or more nodes.  Returns the nodes.
sourceraw docstring

$x:node?clj

($x:node? xp-compiler xp xml & [opts])

Perform an xpath search, resulting in zero or one node. Returns the node.

Perform an xpath search, resulting in zero or one node.  Returns the node.
sourceraw docstring

$x:tagclj

($x:tag xp-compiler xp xml & [opts])

Perform an xpath search, resulting in one and only one node. Return only the tag name.

Perform an xpath search, resulting in one and only one node.  Return only the tag name.
sourceraw docstring

$x:tag*clj

($x:tag* xp-compiler xp xml & [opts])

Perform an xpath search, resulting in zero or more nodes, return just the tag name.

Perform an xpath search, resulting in zero or more nodes, return just the tag name.
sourceraw docstring

$x:tag+clj

($x:tag+ xp-compiler xp xml & [opts])

Perform an xpath search, resulting in one or more nodes. Return only the tag name.

Perform an xpath search, resulting in one or more nodes.  Return only the tag name.
sourceraw docstring

$x:tag?clj

($x:tag? xp-compiler xp xml & [opts])

Perform an xpath search, resulting in zero or one node. Return only the tag name.

Perform an xpath search, resulting in zero or one node.  Return only the tag name.
sourceraw docstring

$x:textclj

($x:text xp-compiler xp xml & [opts])

Perform an xpath search, resulting in one and only one node. Return only the node's text.

Perform an xpath search, resulting in one and only one node.  Return only the node's text.
sourceraw docstring

$x:text*clj

($x:text* xp-compiler xp xml & [opts])

Perform an xpath search, resulting in zero or more nodes. Return only each the node's text.

Perform an xpath search, resulting in zero or more nodes.  Return only each the node's text.
sourceraw docstring

$x:text+clj

($x:text+ xp-compiler xp xml & [opts])

Perform an xpath search, resulting in one or more nodes. Return only each the node's text.

Perform an xpath search, resulting in one or more nodes.  Return only each the node's text.
sourceraw docstring

$x:text?clj

($x:text? xp-compiler xp xml & [opts])

Perform an xpath search, resulting in zero or one node. Return only the node's text.

Perform an xpath search, resulting in zero or one node.  Return only the node's text.
sourceraw docstring

->qualified-nameclj

(->qualified-name qname)
source

abs-pathclj

(abs-path node)

Determine an absolute xpath expression that locates this node inside the enclosing document. Based on code developed by Florian Bösch on XML-SIG (http://mail.python.org/pipermail/xml-sig/2004-August/010423.html) as enhanced and published by Uche Ogbuji (http://www.xml.com/pub/a/2004/11/24/py-xml.html)

Determine an absolute xpath expression that locates this node inside the enclosing document.
Based on code developed by Florian Bösch on XML-SIG (http://mail.python.org/pipermail/xml-sig/2004-August/010423.html)
as enhanced and published by Uche Ogbuji (http://www.xml.com/pub/a/2004/11/24/py-xml.html)
sourceraw docstring

abs-path*cljmultimethod

Determine the absolute path to node.

Determine the absolute path to node.
sourceraw docstring

attrsclj

(attrs nodeattrs)

Extract the attributes from the node.

Extract the attributes from the node.
sourceraw docstring

disallow-doctype-declclj

source

dom-node-list->seqclj

(dom-node-list->seq node-list)

Convert a org.w3c.dom.NodeList into a clojure sequence.

Convert a org.w3c.dom.NodeList into a clojure sequence.
sourceraw docstring

dom-node-map->seqclj

(dom-node-map->seq node-list)

Convert a org.w3c.dom.NodeList into a clojure sequence.

Convert a org.w3c.dom.NodeList into a clojure sequence.
sourceraw docstring

external-general-entitiesclj

source

external-parameter-entitiesclj

source

format-tagcljmultimethod

Helper for generating XML (mostly used by the test suite).

Helper for generating XML (mostly used by the test suite).
sourceraw docstring

format-tag-seqclj

(format-tag-seq tag-and-attrs & [with-attrs])

Helper for generating XML (mostly used by the test suite).

Helper for generating XML (mostly used by the test suite).
sourceraw docstring

input-stream->domclj

(input-stream->dom istr & [opts])

Convert an input stream into a DOM.

Convert an input stream into a DOM.
sourceraw docstring

load-external-dtdclj

source

make-dom-factoryclj

(make-dom-factory opts)
source

make-xpath-compilerclj

(make-xpath-compiler _opts)

Inputs: [_opts :- Options]

Inputs: [_opts :- Options]
sourceraw docstring

node->mapclj

(node->map node)

Create a logical map out of the Node's properties: :node the-node :tag tag name of node :attrs map of the node's attributes :text the text of the node :children a lazy sequence of the node's children.

Create a logical map out of the Node's properties:
:node      the-node
:tag       tag name of node
:attrs     map of the node's attributes
:text      the text of the node
:children  a lazy sequence of the node's children.
sourceraw docstring

node->xmlclj

(node->xml node)

Convert a Node to a String of XML.

Convert a Node to a String of XML.
sourceraw docstring

node-list->seqclj

(node-list->seq thing)

Convert a org.w3c.dom.NodeList into a clojure sequence.

Convert a org.w3c.dom.NodeList into a clojure sequence.
sourceraw docstring

node-nameclj

(node-name node)

Accessor for the node's name.

Accessor for the node's name.
sourceraw docstring

nscontextclj

(nscontext prefix-map)

Create a javax.xml.namespace.NamespaceContext from the given map.

Create a javax.xml.namespace.NamespaceContext from the given map.
sourceraw docstring

Optionsclj

source

register-xpath-functionclj

(register-xpath-function xp-compiler qualified-name arity f)
source

set-ns-context!clj

(set-ns-context! xp-compiler context-map)
source

summarizeclj

(summarize s len)

Summarize a string to a specific maximu length (truncating it and adding ... if it is longer than len).

Summarize a string to a specific maximu length (truncating it and adding ... if it is longer than len).
sourceraw docstring

tagclj

(tag tag & body)

Helper for generating XML (mostly used by the test suite).

Helper for generating XML (mostly used by the test suite).
sourceraw docstring

textclj

(text node)

Accessor for text content from the node.

Accessor for text content from the node.
sourceraw docstring

xml->doccljmultimethod

Convert various forms of XML into a Document. Supported forms:

String byte array Input Stream org.w3c.dom.Document org.w3c.dom.Node

Convert various forms of XML into a Document.  Supported forms:

String
byte array
Input Stream
org.w3c.dom.Document
org.w3c.dom.Node
sourceraw docstring

xml-bytes->domclj

(xml-bytes->dom bytes & [opts])

Convert a byte array into a DOM.

Convert a byte array into a DOM.
sourceraw docstring

xmlnsmap-from-documentclj

(xmlnsmap-from-document xml)

Extract a map of XML Namespace prefix to URI (and URI to prefix) recursively from the entire document.

Extract a map of XML Namespace prefix to URI (and URI to prefix) recursively from the entire document.
sourceraw docstring

xmlnsmap-from-nodeclj

(xmlnsmap-from-node node)

Extract a map of XML Namespace prefix to URI (and URI to prefix) from the given node.

Extract a map of XML Namespace prefix to URI (and URI to prefix) from the given node.
sourceraw docstring

xmlnsmap-from-root-nodeclj

(xmlnsmap-from-root-node xp-compiler xml & [opts])

Extract a map of XML Namespace prefix to URI (and URI to prefix) from the root node of the document.

Extract a map of XML Namespace prefix to URI (and URI to prefix) from the root node of the document.
sourceraw docstring

xp:compilecljmultimethod

Compile an XPath expression. If the argument is already a compiled XPath expression, it is returned as-is.

Compile an XPath expression.  If the argument is already a compiled XPath expression, it is returned as-is.
sourceraw docstring

xpath-functions-by-xp-compilerclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close