Skip to main content

XML

62
  • ->CDataEvent

    Positional factory function for class clojure.data.xml.event.CDataEvent.

  • ->CharsEvent

    Positional factory function for class clojure.data.xml.event.CharsEvent.

  • ->CommentEvent

    Positional factory function for class clojure.data.xml.event.CommentEvent.

  • ->EmptyElementEvent

    Positional factory function for class clojure.data.xml.event.EmptyElementEvent.

  • ->QNameEvent

    Positional factory function for class clojure.data.xml.event.QNameEvent.

  • ->StartElementEvent

    Positional factory function for class clojure.data.xml.event.StartElementEvent.

  • alias-uri

    Define a Clojure namespace aliases for xmlns uris. This sets up the current namespace for reading qnames denoted with...

  • cdata

    Create a CData node

  • disable-external-entities

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

  • element

    Create an xml Element from content varargs

  • element*

    Create an xml element from a content collection and optional metadata

  • element-nss

    Get xmlns environment from element

  • emit

    Prints the given Element tree as XML text to stream. Options: :encoding <str> Character encoding to use ...

  • emit-str

    Emits the Element to String and returns it. Options: :encoding <str> Character encoding to use :doct...

  • event-seq

    Parses an XML input source into a lazy sequence of pull events. Input source can be a java.io.InputStream or java.io.Re...

  • event-tree

    Returns a lazy tree of Element objects for the given seq of Event objects. See source-seq and parse.

  • flatten-elements

    Flatten a collection of elements to an event seq

  • indent

    Emits the XML and indents the result. WARNING: this is slow it will emit the XML and read it in again to indent it. ...

  • indent-str

    Emits the XML and indents the result. Writes the results to a String and returns it

  • map->CDataEvent

    Factory function for class clojure.data.xml.event.CDataEvent, taking a map of keywords to field values.

  • map->CharsEvent

    Factory function for class clojure.data.xml.event.CharsEvent, taking a map of keywords to field values.

  • map->CommentEvent

    Factory function for class clojure.data.xml.event.CommentEvent, taking a map of keywords to field values.

  • map->EmptyElementEvent

    Factory function for class clojure.data.xml.event.EmptyElementEvent, taking a map of keywords to field values.

  • map->QNameEvent

    Factory function for class clojure.data.xml.event.QNameEvent, taking a map of keywords to field values.

  • map->StartElementEvent

    Factory function for class clojure.data.xml.event.StartElementEvent, taking a map of keywords to field values.

  • parse

    Parses an XML input source into a a tree of Element records. The element tree is realized lazily, so huge XML files can ...

  • parse

    Parses and loads the source s, which can be a File, InputStream or String naming a URI. Returns a tree of the xml/elem...

  • parse-str

    Parses an XML String into a a tree of Element records. Options: :include-node? subset of #{:element :characters :com...

  • print-uri-file-command!

    Shell command to create a dummy file for xmlns. Execute from a source root.

  • qname-local

    Get the name for this qname

  • qname-uri

    Get the namespace uri for this qname

  • sax-parser

    Create a new SAXParser

  • seq-tree

    Takes a seq of events that logically represents a tree by each event being one of: enter-sub-tree event, exit-sub-tr...

  • sexp-as-element

    Convert a single sexp into an Element

  • sexps-as-fragment

    Convert a compact prxml/hiccup-style data structure into the more formal tag/attrs/content format. A seq of elements ...

  • startparse-sax

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

  • startparse-sax-safe

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

  • uri-file

    Dummy file name for :require'ing xmlns uri

  • xml-comment

    Create a Comment node