<< Back to previous view

[DXML-18] Not parsing multiple top-level elements Created: 24/Jun/13  Updated: 10/Nov/13  Resolved: 10/Nov/13

Status: Closed
Project: data.xml
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Alan Busby Assignee: Ryan Senior
Resolution: Declined Votes: 0
Labels: None

[org.clojure/clojure "1.5.1"] and [org.clojure/data.xml "0.0.7"]


(xml/parse-str "<a>1</a><b>2</b>")
{:tag :a, :attrs {}, :content ("1")}

Where did "b" go?

Comment by Alan Busby [ 24/Jun/13 7:43 AM ]

Sorry, feel free to close this.
Reviewing the code it appears that parse-str only accepts full XML documents and can't handle fragments, or is that incorrect?

Comment by Ryan Senior [ 10/Nov/13 10:39 PM ]

That's correct. Closing this as it's by design.

Generated at Wed Jan 17 12:40:16 CST 2018 using JIRA 4.4#649-r158309.