jackson-dataformat-xml icon indicating copy to clipboard operation
jackson-dataformat-xml copied to clipboard

Add support for specifying XML Schema attribute to output for root element

Open cowtowncoder opened this issue 11 years ago • 5 comments

(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

cowtowncoder avatar Jan 14 '14 04:01 cowtowncoder

+1

martin-g avatar Feb 12 '15 13:02 martin-g

+1 (although I'd like to be able to add an xsi:noNamespaceSchemaLocation without a pojo too).

richmidwinter avatar Feb 12 '16 13:02 richmidwinter

+1

arjonamiguel avatar Jul 06 '17 16:07 arjonamiguel

+1

nikolaikopernik avatar Mar 27 '18 08:03 nikolaikopernik

+1 on this. I need this for a sitemap generator in ktor.

wilyarti avatar Oct 28 '19 21:10 wilyarti