[xsd-users] "Unable to open in read mode" using --namespace-regex

Boris Kolpackov boris at codesynthesis.com
Wed Mar 26 09:10:04 EDT 2008


Hi Timothy,

Lenz, Timothy K <timothy.k.lenz at lmco.com> writes:

> Here is the error message I get when running --namespace-regex-trace:
>
> %.* (\w+):(\w+)%$1::$2%: error: '%.* (\w+):(\w+)%$1::$2%': error: unable
> to open in read mode

Can you post the exact command line that you are using? The option to
which you pass regex should be --namespace-regex, not
--namespace-regex-trace. --namespace-regex-trace is just a flag that
turns on namespace regex tracing. In other words, your command line
should look something like this:

$ xsd cxx-tree --namespace-regex '%.* (\w+):(\w+)%$1::$2%' file.xsd

Or, if you also want regex tracing, like this:

$ xsd cxx-tree --namespace-regex-trace --namespace-regex '%.* (\w+):(\w+)%$1::$2%' file.xsd

Boris




More information about the xsd-users mailing list