I need to modify a grammar according to some per-user settings. The grammar
is fairly complicated so I don't want to construct it entirely in code. So
I constructed it in the grammar editor and placed a tag where I want to
insert my <one-of> branch.

At runtime, I then use StreamReader to load the grxml file, and do a replace
on <item>replaceme</item> with my dynamically constructed <one-of> branch.
this doesn't seem to be working. I keep getting a -1 error (generic error).

Any idea on how to better handle this?

Thanks
Reggie

Re: dynamic grammar question by Reggie

Reggie
Fri Dec 19 09:31:07 CST 2003

Sorry guys. Wrong group.

"Reggie Burnett" <reggie.burnett@aspect.com> wrote in message
news:#hF1yVbxDHA.2316@TK2MSFTNGP10.phx.gbl...
> I need to modify a grammar according to some per-user settings. The
grammar
> is fairly complicated so I don't want to construct it entirely in code.
So
> I constructed it in the grammar editor and placed a tag where I want to
> insert my <one-of> branch.
>
> At runtime, I then use StreamReader to load the grxml file, and do a
replace
> on <item>replaceme</item> with my dynamically constructed <one-of> branch.
> this doesn't seem to be working. I keep getting a -1 error (generic
error).
>
> Any idea on how to better handle this?
>
> Thanks
> Reggie
>
>