users@jaxb.java.net

problems using JAXB to write a WebDAV provider (attribute "targetNamespace" has a bad value: "DAV:" does not satisfy the "anyURI" type)

From: Nicholas S. Barratt <nbarratt_at_AKIVA.COM>
Date: Mon, 09 Dec 2002 16:33:32 -0700

I've written an XML Schema document that describes the XML portion of the WebDAV protocol (IETF RFC 2518). WebDAV requires a namespace URI of "DAV:", which xjc chokes on, even with the -nv switch. Is this an issue that has a workaround or a planned solution?

----
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:dav="DAV:" targetNamespace="DAV:">
    ...
</schema>
----
$ xjc -nv -p example.package webdav.xsd
parsing a schema...
attribute "targetNamespace" has a bad value: "DAV:" does not satisfy the "anyURI" type
  line 3 of webdav.xsd
Failed to parse a schema.