<< 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
Environment:

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



 Description   

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

Where did "b" go?



 Comments   
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 Mon Jul 28 17:56:29 CDT 2014 using JIRA 4.4#649-r158309.