Skip to content

Commit d4484b9

Browse files
committed
Update docstring for event-seq to show default option values
1 parent 0a26f13 commit d4484b9

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

  • src/main/clojure/clojure/data

src/main/clojure/clojure/data/xml.clj

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,22 @@ Input source can be a java.io.InputStream or java.io.Reader
5555
5656
Options:
5757
58-
:include-node? can be a subset of #{:element :characters :comment} default #{:element :characters}
59-
:location-info pass false to skip generating location meta data
60-
61-
See http://docs.oracle.com/javase/6/docs/api/javax/xml/stream/XMLInputFactory.html
62-
for documentation on options:
63-
64-
{:allocator XMLInputFactory/ALLOCATOR
65-
:coalescing XMLInputFactory/IS_COALESCING
66-
:namespace-aware XMLInputFactory/IS_NAMESPACE_AWARE
67-
:replacing-entity-references XMLInputFactory/IS_REPLACING_ENTITY_REFERENCES
68-
:supporting-external-entities XMLInputFactory/IS_SUPPORTING_EXTERNAL_ENTITIES
69-
:validating XMLInputFactory/IS_VALIDATING
70-
:reporter XMLInputFactory/REPORTER
71-
:resolver XMLInputFactory/RESOLVER
72-
:support-dtd XMLInputFactory/SUPPORT_DTD}"
58+
:include-node? subset of #{:element :characters :comment}, default #{:element :characters}
59+
:location-info pass false to skip generating location meta data, default true
60+
61+
See https://docs.oracle.com/javase/8/docs/api/javax/xml/stream/XMLInputFactory.html
62+
for documentation on xml options. These are the defaults:
63+
64+
{:allocator nil ; XMLInputFactory/ALLOCATOR
65+
:coalescing true ; XMLInputFactory/IS_COALESCING
66+
:namespace-aware true ; XMLInputFactory/IS_NAMESPACE_AWARE
67+
:replacing-entity-references true ; XMLInputFactory/IS_REPLACING_ENTITY_REFERENCES
68+
:supporting-external-entities false ; XMLInputFactory/IS_SUPPORTING_EXTERNAL_ENTITIES
69+
:validating false ; XMLInputFactory/IS_VALIDATING
70+
:reporter nil ; XMLInputFactory/REPORTER
71+
:resolver nil ; XMLInputFactory/RESOLVER
72+
:support-dtd true ; XMLInputFactory/SUPPORT_DTD
73+
}"
7374
{:arglists (list ['source parser-opts-arg])}
7475
[source opts]
7576
(let [props* (merge {:include-node? #{:element :characters}

0 commit comments

Comments
 (0)