How can I force a JDOM XMLOutputter to write namespace prefixes on all elements?
-
29-10-2019 - |
문제
I'm writing XML that will be consumed by the Windows WebFolder (for mounting a WebDAV volume). WebFolder requires that all elements have a prefix on them, so instead of this:
<one xmlns="DAV:">
<two />
<three />
</one>
I need to do this:
<D:one xmlns:D="DAV:">
<D:two />
<D:three />
</D:one>
This is ugly and should be unnecessary, but it's Microsoft, and they do it their way, so whatever. The question is, how can I tell JDOM to write the XML this way?
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow