[xsd-users] "Unable to open in read mode" using --namespace-regex
Lenz, Timothy K
timothy.k.lenz at lmco.com
Wed Mar 26 09:55:04 EDT 2008
Hey Boris:
When I first started trying this, I was using --namespace-regex and it
wasn't working (with my inadequate regular expressions), so I started
using the -trace version until it was fixed. I've been using -trace
ever since to see what the errors are, assuming I'd get no errors once
it worked.
I ran the command again using the regular version (no trace) with your
suggested regular expression changes and it seems to work now. For some
reason, every single time I run it with -trace, I get that "unable to
open in read mode" error, even if it works without the -trace. Makes
--namespace-regex-trace worthless to me.
I'm having some other issues now, but I think they're more with the XSD
files themselves and not the binder.
Thanks for your help.
Tim Lenz
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Wednesday, March 26, 2008 9:10 AM
To: Lenz, Timothy K
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] "Unable to open in read mode" using
--namespace-regex
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