<< Back to previous view

[DXML-10] Support for DOCTYPE when emitting XML Created: 14/Nov/12  Updated: 28/Aug/16  Resolved: 28/Aug/16

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

Type: Enhancement Priority: Major
Reporter: Thomas Greve Kristensen Assignee: Ryan Senior
Resolution: Completed Votes: 3
Labels: None

Attachments: Text File DXML-10-Add-support-for-doctype-declarations.patch     XML File web.xml    
Patch: Code and Test

 Description   

Some consumers of XML files require an explicit DOCTYPE to accept an XML file. data.xml does not currently support the specification of doctypes when emitting XML. When XML is parsed, I believe DOCTYPEs are silently ignored, so there is no representation in the data model for them. The best design is possibly an :doctype option in clojure.data.xml/emit ?

I've attached a web.xml as example.



 Comments   
Comment by Christian Egli [ 04/Jul/16 9:15 AM ]

Patch that adds support for doctype declarations when emitting XML

Comment by Christian Egli [ 23/Aug/16 7:41 AM ]

Is there anything I can do to move this issue forward? I have a local hack around this issue which prevents me from upgrading org.clojure/data.xml. OTOH I really need the new namespace support, so a new version containing both the namespace and the DOCTYPE support would be fantastic.

Thanks

Comment by Ryan Senior [ 28/Aug/16 1:31 PM ]

Thanks for the patch! This has been applied and will be included in beta2 (which will be released soon)

Generated at Thu Sep 29 20:41:32 CDT 2016 using JIRA 4.4#649-r158309.