Liking cljdoc? Tell your friends :D

clojure.xml

XML reading/writing.

XML reading/writing.
raw docstring

*current*clj

source

*sb*clj

source

*stack*clj

source

*state*clj

source

attrsclj

source

contentclj

source

content-handlerclj

source

disable-external-entitiesclj

(disable-external-entities parser)

Modifies a SAXParser to disable external entity resolution to prevent XXE attacks

Modifies a SAXParser to disable external entity resolution to prevent XXE attacks
sourceraw docstring

elementclj

source

emitclj

(emit x)
source

emit-elementclj

(emit-element e)
source

parseclj

(parse s)
(parse s startparse)

Parses and loads the source s, which can be a File, InputStream or String naming a URI. Returns a tree of the xml/element struct-map, which has the keys :tag, :attrs, and :content. and accessor fns tag, attrs, and content. Other parsers can be supplied by passing startparse, a fn taking a source and a ContentHandler and returning a parser.

Prior to 1.11, used startparse-sax by default. As of 1.11, uses startparse-sax-safe, which disables XXE (XML External Entity) processing. Pass startparse-sax to revert to prior behavior.

Parses and loads the source s, which can be a File, InputStream or
String naming a URI. Returns a tree of the xml/element struct-map,
which has the keys :tag, :attrs, and :content. and accessor fns tag,
attrs, and content. Other parsers can be supplied by passing
startparse, a fn taking a source and a ContentHandler and returning
a parser.

Prior to 1.11, used startparse-sax by default. As of 1.11, uses
startparse-sax-safe, which disables XXE (XML External Entity)
processing. Pass startparse-sax to revert to prior behavior.
sourceraw docstring

sax-parserclj

(sax-parser)

Create a new SAXParser

Create a new SAXParser
sourceraw docstring

startparse-saxclj

(startparse-sax s ch)

A startparse function suitable for use with clojure.xml/parse. Note that this function is open to XXE entity attacks, see startparse-sax-safe.

A startparse function suitable for use with clojure.xml/parse.
Note that this function is open to XXE entity attacks, see startparse-sax-safe.
sourceraw docstring

startparse-sax-safeclj

(startparse-sax-safe s ch)

A startparse function suitable for use with clojure.xml/parse. External entity resolution is disabled to prevent XXE entity attacks.

A startparse function suitable for use with clojure.xml/parse.
External entity resolution is disabled to prevent XXE entity attacks.
sourceraw docstring

tagclj

source

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

× close