A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clojure.github.io/clojure/clojure.xml-api.html below:

clojure.xml - Clojure v1.12.1 API documentation

API for clojure.xml -

Full namespace name:

clojure.xml Overview
XML reading/writing.

Public Variables and Functions
disable-external-entitiesfunction
Usage: (disable-external-entities parser)
Modifies a SAXParser to disable external entity resolution to prevent XXE attacks
Added in Clojure version 1.11
Source
parsefunction
Usage: (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.
Added in Clojure version 1.0
Source
sax-parserfunction
Usage: (sax-parser)
Create a new SAXParser
Added in Clojure version 1.11
Source
startparse-saxfunction
Usage: (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.
Added in Clojure version 1.0
Source
startparse-sax-safefunction
Usage: (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.
Added in Clojure version 1.11
Source

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4