data.xml

Support for DOCTYPE when emitting XML

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • 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.

  1. DXML-10-Add-support-for-doctype-declarations.patch
    04/Jul/16 9:15 AM
    9 kB
    Christian Egli
  2. web.xml
    14/Nov/12 2:06 AM
    0.4 kB
    Thomas Greve Kristensen

Activity

Christian Egli made changes -
Field Original Value New Value
Attachment DXML-10-Add-support-for-doctype-declarations.patch [ 15766 ]
Christian Egli made changes -
Patch Code and Test [ 10002 ]

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated: