jackson-dataformat-xml
jackson-dataformat-xml copied to clipboard
Add support for specifying XML Schema attribute to output for root element
(note: inspired by http://stackoverflow.com/questions/21086717/how-to-convert-pojo-to-xml-with-jackson)
It would make sense to be able to indicate that a specific XML Schema instance would be output as, say:
<TestUser xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="testUser.xsd">
for example by adding new properties for @JsonRootName
+1
+1 (although I'd like to be able to add an xsi:noNamespaceSchemaLocation without a pojo too).
+1
+1
+1 on this. I need this for a sitemap generator in ktor.