문제

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?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top